Say hello to my little friend, AutoHotkey. This small–and free–utility can accomplish big things. It’s one of the best ways I know to make your PC work exactly the way you want it to.
Specifically, AutoHotkey (AHK for short) is a macro recorder, meaning it stores a sequence of keyboard, mouse, and/or joystick (remember those?) commands and then lets you play them back.
That may not sound like a big deal, but trust me, it’s incredibly handy. For example, a simple AHK script can remap any key on your keyboard. Want to, say, turn your Caps Lock key into a Mute button? It’s a 60-second job.
The first time you run AHK, you’ll see a sample script with some instructions. Feel free to read them, keeping in mind that this tool can be a little daunting at first. That said, I’m all about diving in headfirst.
Auto-Complete Text as You Type
Hotstrings are keystrokes inserted whenever you type a designated abbreviation. For example, you type fwiw, and AHK replaces it with “for what it’s worth.” Hotstrings are great for, say, adding different signatures to e-mail messages (sig1, sig2, etc.), or saving time when typing repetitive bits of text.
Here’s how to set up your own hotstring with AHK:
On any open area of the desktop, right-click and choose New, AutoHotkey script.
Enter a name for the script (in this case something like fwiw.ahk) and press Enter.
Right-click the new file and choose Edit Script.
Find a blank line and type ::fwiw::for what it’s worth
Select File, Exit, making sure to save your changes.
Right-click the file and choose Run Script.
Now, whenever you type fwiw followed by a space or punctuation, AHK will replace it with “for what it’s worth.”
Restore the Backspace Key’s Folder Function
If, like me, you’re a fan of keyboard shortcuts, you may have noticed that in Windows Vista and Windows 7, the Backspace key doesn’t work like it used to. It still erases the character to the left of your cursor–but when you’re viewing folders in Windows Explorer, Backspace no longer moves you “up” a folder in the hierarchy like it did in Windows XP. Instead, it takes you back to the previous folder you were viewing.
It’s a minor hassle, to be sure, but one that shortcut purists will undoubtedly bemoan once they make the move from XP. Fortunately, there’s an AutoHotkey-powered solution.
As a full-time writer, I do a lot of copying and pasting. Unfortunately, text copied from, say, a Web page to a blog tool or from Word to a Web form often comes with a lot of unwanted formatting. Drives me nuts.
AutoHotkey to the rescue! One of my absolute favorite AHK scripts comes from Lifehacker’s Adam Pash, whose aptly named Better Paste automatically strips the formatting from text copied to the Clipboard. When you go to paste it, you get fresh, clean, plain text.
Best of all, Better Paste is keyboard shortcut-friendly. It works with good old Ctrl-V, the shortcut for Paste. And on those rare occasions you want the original, formatted text, just tap Ctrl-Shift-V. Brilliant.
Behind the scenes, the script monitors the Outlook window for a middle-click (which on some mice means a click of the scroll wheel). When it detects one, it reproduces a left-button click (to select the message) and a press of Ctrl-D (to delete it). Clever, huh?
This also works with the calendar: Just middle-click an appointment to delete it.
The instructions at Lifehacker are very clear, so I won’t reproduce them here. I will say that if you’re an Outlook user, you’re about to fall in love with AutoHotkey–and your middle mouse button.