I’m on a mission. My new laptop, Lenovo, is giving me a lot problems which im sure you heard about if you follow me on Twitter and you can expect a few blog posts on how I end up solving some of them. As I’m remapping my keys I thought I’d share my new use for CapsLock, cut, copy and paste.
This script will cut when pressing shift and CapsLock, copy when clicking just the CapsLock key once, and paste on double click.
I’m using AutoHotKey which you might already know I love. And a certain person likes to make fun of the way I pronounce the name 🙂
Download AutoHotKey, and create a file with an .ahk extension. Write the script, and double click on the file to execute it. Its nothing fancy:
if (A_PriorHotkey <> “~CapsLock” or A_TimeSincePriorHotkey > 500)
Setting CapsLock off:
Setting up a startup script (run the script when you start the computer) can be done a few different ways.
The easiest way is adding the script to the startup folder:
Or use the Task Scheduler. Add a new task, add an action to start a program, add the script path (this is just a mock as I’m on a another computer), and make sure you let the task run even if not on AC power.