AutoHotkey is an awesome, free, open-source, little Windows scripting utility which makes setting global hotkeys super easy. This is a quick ‘getting started’ post on how to use it to make a hotkey. In this example we’re going to make Windows Key+N open notepad…
- Download the free AutoHotkey
- Create a .ahk text file
Let’s call it MyHotkey.ahk and add this line:
#n:: run "c:\windows\notepad.exe"
- Place a shortcut to that file in your Startup folder
So that it runs at startup.
- Open Windows Explorer
- Copy/Paste this into the address bar:
- Right-click in the folder and select New > Shortcut
That’s it! You can now add more lines like that to your .ahk file for more global hotkeys. For other modifier keys, use # is windows key, ^ is ctrl, + for shift, and ! for alt. “^+q” would be ctrl-shift-q. I usually add this line at the top to remind me:
; #=Win ^=Ctrl +=Shift !=Alt