This is an old revision of the document!
Table of Contents
AutoHotKey does input macro programming and keyboard remapping in Windows. Key docs:
Recipes
Below are some useful recipes. See also: Using AutoHotKey to map keys on the Amtelco KB163 Unified Keyboard.
General
; General controls:
; Win+Esc to reload
; Win+Shift+Esc to exit
; Win+Ctrl+Esc to exit
#Escape::Reload
#+Escape::ExitApp
#^Escape::Edit
; Win+Backtick = Sleep
#`::DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)
; Win+M = toggle mute
#m::Send {Volume_Mute}
Winkey shortcut overrides
Windows by default binds Win+X, Win+B, and Win+Space to stuff I don't care about. The script below will remap these to some random key combos that you can then hook with WinAmp, Launchy, etc.
; WinAmp+Launchy remaps #x::[ #b::] #space::SendInput 