How would you like to be able to shorten anything you write often?
How about an example. If your name is Frank, you probably type something along the lines of “Best, Frank” at the end of emails or memos. What if you could type far fewer characters and get the same result?
With AutoHotKey, you can.
I’d heard about AutoHotKey from Lifehacker several times and tried it out, but I didn’t quite see how it could work really well. I didn’t understand how people used it effectively. It took seeing AutoHotKey as one of the most popular applications on Lifehacker’s what software speeds up your day post to get me to try it out again. If that many people are using it to be more efficient, I want to see what all the fuss is.
One of the barriers to using the software was that there wasn’t an obvious way to run it automatically at startup, so it would be more work to run the .ahk file than just typing the command myself. That was solved by putting a shortcut to the .ahk file in my startup folder. I haven’t seen any mention of it anywhere, but I would guess that’s the recommended way to run it. (Right click on the Start menu, Start Menu\Programs\Startup)
Once that was in place I had a file that would be running whenever I was logged in, so I put in a few shortcuts. The first one I added was a way to minimize the active window (I tied it to Ctrl-Alt-m.) You’d think there would already be a way to do that in Windows, but there isn’t.
Here’s the AutoHotKey line to do that:
^!m::WinMinimize,A
The ^ means control, the ! means alt and the m is m, so that’s where the Ctrl-Alt-m comes from. WinMinimize is a built-in command in AutoHotKey, and A means the active window.
Another really useful shortcut type is autocomplete. Instead of tying it to a shortcut, you associate it with a character sequence followed by a user-definable ending (I use Tab or Enter). When I write emails I no longer type my signoff. Instead, I only type “br” then Tab, producing Best regards, Dan (with the two newlines after the comma). Here’s the code for that.
::br::Best regards,{Enter 2}Dan
To enter a link when I’m writing a blog entry I copy the link onto the clipboard (Ctrl-C), type “hre” Tab. AutoHotKey pastes the link from the clipboard into a link and leaves the cursor at the part where I can type the text of the link. Here’s the code for that.
::hre::{Left 4}
There also Windows shortcuts you may not be familiar with. My personal favorites are WindowsKey-E to open an explorer window and WindowsKey-L to lock the screen. GHacks has some more.