Example of key combination on the right-hand-side:
; make right Ctrl do Ctrl+Alt+Shift+9
RControl::Send ^!+9
Other modifier keys combination on the left-hand-side needs to use ampersand.
; MenuKey+n
AppsKey & n::Run Notepad
Example of key combination/sequence on the left-hand-side or right-hand-side:
; make Ctrl+F11 do Ctrl+t
Control & F11::Send ^t
; switch to next window and hide current. Alt+Esc
LWin & NumpadMult::Send !{Esc}
; switch to previous window. Alt+Shift+Esc
LWin & NumpadDiv::Send !+{Esc}
; disable Win key behavior of popping up the Start Menu, but still allow Win+key combination.
~LWinUp::Return
Action on Press or Release
If your script defines actions for any of Shift, Alt, Ctrl, they fire upon release of the key.
To make them fire on press, put a tilde in front, like this: ~Alt.
A specific left or right hotkey such as LAlt:: fires when it is pressed down.
Function Keys
; F1 key
F1::Run Notepad
; Ctrl+F1
^F1::Run Notepad
Space, Tab, Enter, Escape
Key
Syntax
space
Space
tab
Tab
enter
Enter
escape
Esc
backspace
Backspace
; Space key
Space::Run Notepad
; Ctrl+Space
^Space::Run Notepad
Home, End, Ins, Del, Page Up/Down
Key
Syntax
delete
Del
insert
Ins
home
Home
end
End
page up
PgUp
page down
PgDn
Arrow Keys
Key
Syntax
↑
Up
↓
Down
←
Left
→
Right
Pause, Print Screen, Screen Lock, Capslock
Key
Syntax
ScrLk
ScrollLock
CapsLock
CapsLock
PrtScn/SysRq
PrintScreen
Pause/Break
Pause
If you want Ctrl+Pause, use the syntax ^CtrlBreak.
Numberpad Keys
Key
Syntax
Num Lock
NumLock
Keys When Number Lock is On
Key
Syntax
0
Numpad0
1
Numpad1
2
Numpad2
3
Numpad3
4
Numpad4
5
Numpad5
6
Numpad6
7
Numpad7
8
Numpad8
9
Numpad9
+
NumpadAdd
/
NumpadDiv
.
NumpadDot
*
NumpadMult
-
NumpadSub
Enter
NumpadEnter
Keys When Number Lock is Off
Key
Syntax
End
NumpadEnd
Home
NumpadHome
PgDn
NumpadPgDn
PgUp
NumpadPgUp
Del
NumpadDel
Ins
NumpadIns
←
NumpadLeft
→
NumpadRight
↑
NumpadUp
↓
NumpadDown
Multimedia Special Keys
The following are syntax for special buttons on many of today's keyboards.