; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a ; semicolon, such as this one, are comments. They are not executed. ; This script has a special filename and path because it is automatically ; launched when you run the program directly. Also, any text file whose ; name ends in .ahk is associated with the program, which means that it ; can be launched simply by double-clicking it. You can have as many .ahk ; files as you want, located in any folder. You can also run more than ; one ahk file simultaneously and each will get its own tray icon. SetCapsLockState, alwaysoff CapsLock & i:: if getkeystate("shift") = 1 Send, +{up} else Send {up} return CapsLock & j:: if getkeystate("shift") = 1 Send, +{left} else Send, {left} return CapsLock & k:: if getkeystate("shift") = 1 Send, +{down} else Send, {down} return CapsLock & `;:: if getkeystate("shift") = 1 Send, +{right} else Send, {right} return CapsLock & q::Send !{F4} CapsLock & tab::Send {space 4} CapsLock & h:: GetKeyState, state, Shift if state = D Send {SHIFTDOWN}{HOME}{SHIFTUP} else Send {home} return CapsLock & ':: GetKeyState, state, Shift if state = D Send {SHIFTDOWN}{end}{SHIFTUP} else Send {end} return