Key Codes

From Nomad DB

Script Hook supports both string and numeric values for Keys. In the most cases it's possible to just use the text of the key (F1-F12, a, b, c), in other cases a numeric value has to be used.

List

LeftButton 0x01 1
RightButton 0x02 2
Cancel 0x03 3
MiddleButton 0x04 4
ExtraButton1 0x05 5
ExtraButton2 0x06 6
Back 0x08 8
Tab 0x09 9
Clear 0x0C 12
Return 0x0D 13
Shift 0x10 16
Control 0x11 17
Menu 0x12 18
Pause 0x13 19
CapsLock 0x14 20
Kana 0x15 21
Hangeul 0x15 21
Hangul 0x15 21
Junja 0x17 23
Final 0x18 24
Hanja 0x19 25
Kanji 0x19 25
Escape 0x1B 27
Convert 0x1C 28
NonConvert 0x1D 29
Accept 0x1E 30
ModeChange 0x1F 31
Space 0x20 32
Prior 0x21 33
Next 0x22 34
End 0x23 35
Home 0x24 36
Left 0x25 37
Up 0x26 38
Right 0x27 39
Down 0x28 40
Select 0x29 41
Print 0x2A 42
Execute 0x2B 43
Snapshot 0x2C 44
Insert 0x2D 45
Delete 0x2E 46
Help 0x2F 47
N0 0x30 48
N1 0x31 49
N2 0x32 50
N3 0x33 51
N4 0x34 52
N5 0x35 53
N6 0x36 54
N7 0x37 55
N8 0x38 56
N9 0x39 57
A 0x41 65
B 0x42 66
C 0x43 67
D 0x44 68
E 0x45 69
F 0x46 70
G 0x47 71
H 0x48 72
I 0x49 73
J 0x4A 74
K 0x4B 75
L 0x4C 76
M 0x4D 77
N 0x4E 78
O 0x4F 79
P 0x50 80
Q 0x51 81
R 0x52 82
S 0x53 83
T 0x54 84
U 0x55 85
V 0x56 86
W 0x57 87
X 0x58 88
Y 0x59 89
Z 0x5A 90
LeftWindows 0x5B 91
RightWindows 0x5C 92
Application 0x5D 93
Sleep 0x5F 95
Numpad0 0x60 95
Numpad1 0x61 97
Numpad2 0x62 98
Numpad3 0x63 99
Numpad4 0x64 100
Numpad5 0x65 101
Numpad6 0x66 102
Numpad7 0x67 103
Numpad8 0x68 104
Numpad9 0x69 105
Multiply 0x6A 106
Add 0x6B 107
Separator 0x6C 108
Subtract 0x6D 109
Decimal 0x6E 110
Divide 0x6F 111
F1 0x70 112
F2 0x71 113
F3 0x72 114
F4 0x73 115
F5 0x74 116
F6 0x75 117
F7 0x76 118
F8 0x77 119
F9 0x78 120
F10 0x79 121
F11 0x7A 122
F12 0x7B 123
F13 0x7C 124
F14 0x7D 125
F15 0x7E 126
F16 0x7F 127
F17 0x80 128
F18 0x81 129
F19 0x82 130
F20 0x83 131
F21 0x84 132
F22 0x85 133
F23 0x86 134
F24 0x87 135
NumLock 0x90 144
ScrollLock 0x91 145
NEC_Equal 0x92 146
Fujitsu_Jisho 0x92 146
Fujitsu_Masshou 0x93 147
Fujitsu_Touroku 0x94 148
Fujitsu_Loy 0x95 149
Fujitsu_Roya 0x96 150
LeftShift 0xA0 160
RightShift 0xA1 161
LeftControl 0xA2 162
RightControl 0xA3 163
LeftMenu 0xA4 164
RightMenu 0xA5 165
BrowserBack 0xA6 166
BrowserForward 0xA7 167
BrowserRefresh 0xA8 168
BrowserStop 0xA9 169
BrowserSearch 0xAA 170
BrowserFavorites 0xAB 171
BrowserHome 0xAC 172
VolumeMute 0xAD 173
VolumeDown 0xAE 174
VolumeUp 0xAF 175
MediaNextTrack 0xB0 176
MediaPrevTrack 0xB1 177
MediaStop 0xB2 178
MediaPlayPause 0xB3 179
LaunchMail 0xB4 180
LaunchMediaSelect 0xB5 181
LaunchApplication1 0xB6 182
LaunchApplication2 0xB7 183
OEM1 OEM1 /
OEMPlus 0xBB 187
OEMComma 0xBC 188
OEMMinus 0xBD 189
OEMPeriod 0xBE 190
OEM2 0xBF 191
OEM3 0xC0 192
OEM4 0xDB 219
OEM5 0xDC 220
OEM6 0xDD 221
OEM7 0xDE 222
OEM8 0xDF 223
OEMAX 0xE1 225
OEM102 0xE2 226
ICOHelp 0xE3 227
ICO00 0xE4 228
ProcessKey 0xE5 229
ICOClear 0xE6 230
Packet 0xE7 231
OEMReset 0xE9 233
OEMJump 0xEA 234
OEMPA1 0xEB 235
OEMPA2 0xEC 236
OEMPA3 0xED 237
OEMWSCtrl 0xEE 238
OEMCUSel 0xEF 239
OEMATTN 0xF0 240
OEMFinish 0xF1 241
OEMCopy 0xF2 242
OEMAuto 0xF3 243
OEMENLW 0xF4 244
OEMBackTab 0xF5 245
ATTN 0xF6 246
CRSel 0xF7 247
EXSel 0xF8 248
EREOF 0xF9 249
Play 0xFA 250
Zoom 0xFB 251
Noname 0xFC 252
PA1 0xFD 253
OEMClear 0xFE 254
nullptr 0x0 0