Key Codes
From Nomad DB
Revision as of 14:57, 15 April 2020 by SpeckBomber (talk | contribs)
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 | Example |
RightButton | 0x02 | Example |
Cancel | 0x03 | Example |
MiddleButton | 0x04 | Example |
ExtraButton1 | 0x05 | Example |
ExtraButton2 | 0x06 | Example |
Back | 0x08 | Example |
Tab | 0x09 | Example |
Clear | 0x0C | Example |
Return | 0x0D | Example |
Shift | 0x10 | Example |
Control | 0x11 | Example |
Menu | 0x12 | Example |
Pause | 0x13 | Example |
CapsLock | 0x14 | Example |
Kana | 0x15 | Example |
Hangeul | 0x15 | Example |
Hangul | 0x15 | Example |
Junja | 0x17 | Example |
Final | 0x18 | Example |
Hanja | 0x19 | Example |
Kanji | 0x19 | Example |
Escape | 0x1B | Example |
Convert | 0x1C | Example |
NonConvert | 0x1D | Example |
Accept | 0x1E | Example |
ModeChange | 0x1F | Example |
Space | 0x20 | Example |
Prior | 0x21 | Example |
Next | 0x22 | Example |
End | 0x23 | Example |
Home | 0x24 | Example |
Left | 0x25 | Example |
Up | 0x26 | Example |
Right | 0x27 | Example |
Down | 0x28 | Example |
Select | 0x29 | Example |
0x2A | Example | |
Execute | 0x2B | Example |
Snapshot | 0x2C | Example |
Insert | 0x2D | Example |
Delete | 0x2E | Example |
Help | 0x2F | Example |
N0 | 0x30 | Example |
N1 | 0x31 | Example |
N2 | 0x32 | Example |
N3 | 0x33 | Example |
N4 | 0x34 | Example |
N5 | 0x35 | Example |
N6 | 0x36 | Example |
N7 | 0x37 | Example |
N8 | 0x38 | Example |
N9 | 0x39 | Example |
A | 0x41 | Example |
B | 0x42 | Example |
C | 0x43 | Example |
D | 0x44 | Example |
E | 0x45 | Example |
F | 0x46 | Example |
G | 0x47 | Example |
H | 0x48 | Example |
I | 0x49 | Example |
J | 0x4A | Example |
K | 0x4B | Example |
L | 0x4C | Example |
M | 0x4D | Example |
N | 0x4E | Example |
O | 0x4F | Example |
P | 0x50 | Example |
Q | 0x51 | Example |
R | 0x52 | Example |
S | 0x53 | Example |
T | 0x54 | Example |
U | 0x55 | Example |
V | 0x56 | Example |
W | 0x57 | Example |
X | 0x58 | Example |
Y | 0x59 | Example |
Z | 0x5A | Example |
LeftWindows | 0x5B | Example |
RightWindows | 0x5C | Example |
Application | 0x5D | Example |
Sleep | 0x5F | Example |
Numpad0 | 0x60 | Example |
Numpad1 | 0x61 | Example |
Numpad2 | 0x62 | Example |
Numpad3 | 0x63 | Example |
Numpad4 | 0x64 | Example |
Numpad5 | 0x65 | Example |
Numpad6 | 0x66 | Example |
Numpad7 | 0x67 | Example |
Numpad8 | 0x68 | Example |
Numpad9 | 0x69 | Example |
Multiply | 0x6A | Example |
Add | 0x6B | Example |
Separator | 0x6C | Example |
Subtract | 0x6D | Example |
Decimal | 0x6E | Example |
Divide | 0x6F | Example |
F1 | 0x70 | Example |
F2 | 0x71 | Example |
F3 | 0x72 | Example |
F4 | 0x73 | Example |
F5 | 0x74 | Example |
F6 | 0x75 | Example |
F7 | 0x76 | Example |
F8 | 0x77 | Example |
F9 | 0x78 | Example |
F10 | 0x79 | Example |
F11 | 0x7A | Example |
F12 | 0x7B | Example |
F13 | 0x7C | Example |
F14 | 0x7D | Example |
F15 | 0x7E | Example |
F16 | 0x7F | Example |
F17 | 0x80 | Example |
F18 | 0x81 | Example |
F19 | 0x82 | Example |
F20 | 0x83 | Example |
F21 | 0x84 | Example |
F22 | 0x85 | Example |
F23 | 0x86 | Example |
F24 | 0x87 | Example |
NumLock | 0x90 | Example |
ScrollLock | 0x91 | Example |
NEC_Equal | 0x92 | Example |
Fujitsu_Jisho | 0x92 | Example |
Fujitsu_Masshou | 0x93 | Example |
Fujitsu_Touroku | 0x94 | Example |
Fujitsu_Loy | 0x95 | Example |
Fujitsu_Roya | 0x96 | Example |
LeftShift | 0xA0 | Example |
RightShift | 0xA1 | Example |
LeftControl | 0xA2 | Example |
RightControl | 0xA3 | Example |
LeftMenu | 0xA4 | Example |
RightMenu | 0xA5 | Example |
BrowserBack | 0xA6 | Example |
BrowserForward | 0xA7 | Example |
BrowserRefresh | 0xA8 | Example |
BrowserStop | 0xA9 | Example |
BrowserSearch | 0xAA | Example |
BrowserFavorites | 0xAB | Example |
BrowserHome | 0xAC | Example |
VolumeMute | 0xAD | Example |
VolumeDown | 0xAE | Example |
VolumeUp | 0xAF | Example |
MediaNextTrack | 0xB0 | Example |
MediaPrevTrack | 0xB1 | Example |
MediaStop | 0xB2 | Example |
MediaPlayPause | 0xB3 | Example |
LaunchMail | 0xB4 | Example |
LaunchMediaSelect | 0xB5 | Example |
LaunchApplication1 | 0xB6 | Example |
LaunchApplication2 | 0xB7 | Example |
OEM1 | OEM1 | Example |
OEMPlus | 0xBB | Example |
OEMComma | 0xBC | Example |
OEMMinus | 0xBD | Example |
OEMPeriod | 0xBE | Example |
OEM2 | 0xBF | Example |
OEM3 | 0xC0 | Example |
OEM4 | 0xDB | Example |
OEM5 | 0xDC | Example |
OEM6 | 0xDD | Example |
OEM7 | 0xDE | Example |
OEM8 | 0xDF | Example |
OEMAX | 0xE1 | Example |
OEM102 | 0xE2 | Example |
ICOHelp | 0xE3 | Example |
ICO00 | 0xE4 | Example |
ProcessKey | 0xE5 | Example |
ICOClear | 0xE6 | Example |
Packet | 0xE7 | Example |
OEMReset | 0xE9 | Example |
OEMJump | 0xEA | Example |
OEMPA1 | 0xEB | Example |
OEMPA2 | 0xEC | Example |
OEMPA3 | 0xED | Example |
OEMWSCtrl | 0xEE | Example |
OEMCUSel | 0xEF | Example |
OEMATTN | 0xF0 | Example |
OEMFinish | 0xF1 | Example |
OEMCopy | 0xF2 | Example |
OEMAuto | 0xF3 | Example |
OEMENLW | 0xF4 | Example |
OEMBackTab | 0xF5 | Example |
ATTN | 0xF6 | Example |
CRSel | 0xF7 | Example |
EXSel | 0xF8 | Example |
EREOF | 0xF9 | Example |
Play | 0xFA | Example |
Zoom | 0xFB | Example |
Noname | 0xFC | Example |
PA1 | 0xFD | Example |
OEMClear | 0xFE | Example |
nullptr | 0x0 | Example |