
If you are into productivity on your computer, you probably already use your keyboard and its shortcuts as much as possible. And if you’re on Windows, you’ve probably also check out the awesome potential of AutoHotKey, which can make your keyboard hum like nobody’s business.
But most people haven’t tapped into the true power of AHK, and explored all the ways it can turn the keyboard into a productivity machine.
For Mac users, you already have the fantabulously wonderful Quicksilver, and if that doesn’t completely meet your needs, try TypeIt4Me for text expansion.
To learn more about setting up AHK scripts, text expansion, shortcut keys, macros and more, see this tutorial.
Here are 10 ways to use AutoHotKey to rock your keyboard:
1. Multiple sigs. If you use different signatures for work, personal use, blogging, etc., use AHK’s super handy text replacement feature to make shortcuts for each sig. For example, I have wsig and wsig2 for my two different work signatures, bsig for my blog signature, and psig and psig2b for my two different personal signatures. Type in 3 or 4 keystrokes, and it automatically expands to your full signature.
Example:
::wsig::Your Name{enter}Your Title{enter}Your Company Name{enter}Your Contact Info
2. Favorite folders. Do you open a few folders several times a day? End the endless double-clicking by setting up shortcuts to your favorite folders. I have about 5 folders I use every day, and their shortcuts save me loads of time. The following example sets up the Windows key + 0 to open a folder (the “#” symbol stands for Windows key in AHK scripting language).
Example:
#0::Run C:\Documents and Settings\YourUsername\My Documents\YourFolder\YourSubfolder
3. Websites. Do you have favorite sites or pages that you go to numerous times a day? We all do. While Firefox has a great keyword bookmarking feature, AHK’s shortcut keys are even faster. I have about 10 sites set up for all my favorite web pages.
Example:
#l::Run http://www.lifehack.org
4. App launcher. Throw away your favorite app launcher. AHK eliminates the need for a separate program for launching applications, because you can tie any application to any keyboard shortcut.
Example:
#f::Run Firefox
5. Common documents. You’re starting to see the theme here. Any documents you use often, such as a letter template or certain spreadsheets, can also be given shortcuts.
Example:
#4::Run C:\Documents and Settings\YourUsername\My Documents\YourFolder\Letter.doc
6. Common emails. If you type a lot of the same emails, day in and day out, set up simple text expansion scripts (such as the signature example above) and put in the text of your common emails. See this article for more info.
7. Autocorrect in any application. Blogger Jim Biancolo used Wikipedia’s list of the most common misspellings as a starting point to create this script, which autocorrects your misspelled words as you type — in any application. He added to the list the autocorrected words in Microsoft Word, plus a bunch of his own common misspellings. Very handy.
8. Quick Google or Wikipedia searches. Again, Firefox has the very cool smart keyword search feature, but AHK can put your common searches in any app. Highlight the work, press you hotkey, and voila! The following scripts allow the user to search for a particular word or phrase using Google or Wikipedia. After selecting the text from any application, pressing the configurable hotkey (Win + g for Google search, Win + w for Wikipedia) will open the default browser and perform the search.
Example:
#g:: Send, ^c Run, http://www.google.com/search?q=%Clipboard% Return
#w:: Send, ^c Run, http://en.wikipedia.org/wiki/Special:Search?search=%Clipboard% Return
9. Blogging markup. If you do a lot of blogging or html coding, you know that typing html codes or having to press buttons to put the codes in can be very repetitive. Automate it by having AHK automatically type the beginning and ending codes for you. Then all you gotta do is write great content. Adam Pash compiled a handy little script for bloggers here.
10. Use Insert for Clipboard tool. I don’t know about you, but I never use the Insert key — in fact, it just messes me up. Biancolo did this little script to remap the Insert key to give it some super-useful functionality: it adds whatever you have highlighted to the clipboard.
For even cooler scripts, see this list for ways to configure or enhance your keyboard.
What are your favorite ways of using AHK? Let us know in the comments.
















I’ve recently started using Keybreeze, and have been adding and customizing keywords, so I’m loath to switch to another tool without strong motivation. Does anyone know if there’s a hotkey utility comparison matrix anywhere?
I’m not sure about how AHK compares to other macro apps, but I’ve been using autohotkey for a few years now as a way to beef up my productivity at work.
It’s quiry (be sure to pause or suspend any scripts before you close ahk), but extremely useful if you manage to utilize its every feature. The downside is that unless you’re a bona fide programmer, you’re not going to be able to use all of AHK’s abilities.
Hi, i want autohotkey to perform a key combination automatically during startup so that it will hide a particular application from the sysytem tray. The key is set with the application so that all i need is just that key combination to work automatically. Can anyone please help me???
[...] is an excellent free scripting tool, also featured in lifehacker.com and lifehack.org.Many other resources on [...]
Hello
I am really glad I found this community, please take a look at these website:
[url=http://onechildrenfurnitureopen.wordpress.com]onechildrenfurnitureopen[/url]
[...] to Rock Your Keyboard Posted in 技术 by tonglingzy on March 18th, 2008 If you are into productivity on your computer, you probably already use your keyboard and its shortcuts as much as possible. And [...]
Richy: AHK has an option to create an executable with its Script Compiler. Then you could load that executable into your start menu’s startup folder.
Not sure if it would help, but you could also just remove the startup item in msconfig (only in some versions of Windows), and then start the program when wanted?
[...] this program to save time and increase productivity. Be creative. For more ideas you can check out 10 Ways to Use AutoHotkey to Rock Your Keyboard, at [...]
It can be difficult to remember all the hotkeys linked to your macros. Everything is different with an overlay keyboard (like the Enterpad). Pressing the right labeled key will instantly generate the hotkey which will start the right macro.
Thanks for the post. I will try to use it more often. I have lots of repetitive work which incorporates web browser and windows application. I am trying to use some software which can do both together.
number 4… I don’t agree with that..that is counter productive… (I am a programmer…)… how many shortcuts are you gonna remember… i would vote for this point
if: you have a program (like some complex unix shell with whacky command line) then this would be good…but if you want to launch notepad… get a life…
I use it to automate a web page report I need to run daily. Depending on the load on the server this web page may not load in the same amount of time so I set up autohotkey to scan for various colors and icons within the page and to then take action and send commands to the browser knowing that the application has loaded. I might be able to do something similar with imacro under firefox, but this is an IE6 only compatible web application. :( Autohotkey works well.
PixelGetColor, color, 10, 175
if color=0×666666
goto LoginFound
Loginfound:
Send, %userid%{TAB}%password%{ENTER}
[...] AutoHotkey is a must-know for the serious computer user. This wonderful, little, free application allows you to set up hotkeys for just about anything. [...]
I find that a shortcut toolbar works great for most of what I do. It really saves me a lot of time because I am able to organize my most recently used docs and programs.
http://3.ly/U0bx
However for everything else, and for more complicated tasks, AHK is beautiful.
CHEESE RULES!!!!!!
I use AHK for my “morning routine” — I have it ask me for a few passwords, and then it does the rest: 1. Logs me into my SSH connection; 2. Opens IE, signs me into my work’s VPN; 3. auto-fills all network access passwords (proxies); 4. Opens and maximizes Outlook, autofilling my password.
The beauty of this script is that it’s very secure; I only have to enter my passwords in once in the morning (which is repetition enough for me to actually remember them if I need them on an as-needed basis). The passwords are not stored in the AHK file, but stored as variables only if I enter them in when AHK requests them.
It takes me just 30 seconds to be up and running with all the different passwords I have to use, instead of a few minutes.
[...] Wolfgang Reszel) 12. [英文]Knock down repetitive email with AutoHotKey (作者: AdamPash) 13. [英文]10 Ways to Use AutoHotKey to Rock Your Keyboard (作者: Leo Babauta) 14. [英文]How to compile .AHK files and include your own icons (作者: [...]
For the point 10 the link if broken, this is the new correct link:
http://www.biancolo.com/articles/making-the-insert-key-useful-instead-of-annoying
[...] Wolfgang Reszel) 13. [英文]Knock down repetitive email with AutoHotKey (作者: AdamPash) 14. [英文]10 Ways to Use AutoHotKey to Rock Your Keyboard (作者: Leo Babauta) 15. [英文]How to compile .AHK files and include your own icons (作者: [...]
Yep, those 10 points are just a ‘appetizer’, try Autohotkey for yourself, and see it’s usefulness ^_____^
I love ahk. I use it ALL the time. I have made a script where:
This: F mny yrs m hme hs been in t Nrth Island o nz>.
Becomes: For many years my home has been in the North Island of New Zealand.
me[at symbol] becomes my email address.
ip> becomes my ip address (for logging into winscp)
As to memory, I have a very good one so this is no problem for me to memorize. My combination key of choice is the apps key. These are some of my most used.
# – cmd.exe; ` – regedit; 1 – ASC; 2 – SpywareBlaster; 3 – CCleaner; 4 – Smart Defrag; 5 – Revo Uninstaller; 6 – Documents*; 7 – Downloads*; 8 – Pictures*; 9 – Music*; 0 – Videos*; – - Programs*; = – ProgramFiles*; w – Word; e – e-Sword; r – RAR Extracter; t – Total Commander; u – Rainmeter; i – Italian.PDF; o – ObjectDock; p – Picasa; s – Rainmeter Skins*; d – DolphinTextEditor; f – Corel;g – GOM; k – Refresh Script; l – LogonStudio; ‘ – Speech Recognition; z – Writer; x – WinSCP; v – EnhanceMyVista; c – CustoPack; b – KeyBoardMod*; n – Notepad; m – Messenger;
*Folders
The Autohotkey forums (and AHK in general) has undergone some changes. The forum is now not worth using. The mods there will delete posts without a reason given, even if it is in the right category and on topic. Stay away from what that place has become…
Better yet, avoid all the headache and drama all together and just use Autoit. :)