Virtual Key Codes |
Top Previous Next |
Here is a list of the scan codes returned by the GetScanCode intrinsic.
Note that the values $30 - $39 correspond to the ASCII characters '0' thru '9' and values $41 - $5A correspond to the ASCII characters 'A' thru 'Z'.
def VK_LBUTTON = $01, \Left mouse button VK_RBUTTON = $02, \Right mouse button VK_CANCEL = $03, \Control+Break VK_MBUTTON = $04, \Middle mouse button VK_BACK = $08, \Backspace key VK_TAB = $09, \Tab key VK_CLEAR = $0C, \Clear key VK_RETURN = $0D, \Enter key VK_LSHIFT = $10, \Shift key VK_CONTROL = $11, \Ctrl key VK_MENU = $12, \Alt key VK_PAUSE = $13, \Pause key VK_CAPITAL = $14, \Caps Lock key VK_KANA = $15, \Used with IME VK_HANGUL = $15, \Used with IME VK_JUNJA = $17, \Used with IME VK_FINAL = $18, \Used with IME VK_HANJA = $19, \Used with IME VK_KANJI = $19, \Used with IME VK_CONVERT = $1C, \Used with IME VK_NONCONVERT = $1D, \Used with IME VK_ACCEPT = $1E, \Used with IME VK_MODECHANGE = $1F, \Used with IME VK_ESCAPE = $1B, \Esc key VK_SPACE = $20, \Space bar VK_PRIOR = $21, \Page Up key VK_NEXT = $22, \Page Down key VK_END = $23, \End key VK_HOME = $24, \Home key VK_LEFT = $25, \Left Arrow key VK_UP = $26, \Up Arrow key VK_RIGHT = $27, \Right Arrow key VK_DOWN = $28, \Down Arrow key VK_SELECT = $29, \Select key VK_PRINT = $2A, \Print key (keyboard-specific) VK_EXECUTE = $2B, \Execute key VK_SNAPSHOT = $2C, \Print Screen key VK_INSERT = $2D, \Insert key VK_DELETE = $2E, \Delete key VK_HELP = $2F, \Help key \ VK_ thru VK_9 are the same as ASCII '0' thru '9' ($30 - $39) VK_0 = $30, VK_1 = $31, VK_2 = $32, VK_3 = $33, VK_4 = $34, VK_5 = $35, VK_6 = $36, VK_7 = $37, VK_8 = $38, VK_9 = $39 \ VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' ($41 - $5A) VK_A = $41, VK_B = $42, VK_C = $43, VK_D = $44, VK_E = $45, VK_F = $46, VK_G = $47, VK_H = $48, VK_I = $49, VK_J = $4A VK_K = $4B, VK_L = $4C, VK_M = $4D, VK_N = $4E, VK_O = $4F, VK_P = $50, VK_Q = $51, VK_R = $52, VK_S = $53, VK_T = $54 VK_U = $55, VK_V = $56, VK_W = $57, VK_X = $58, VK_Y = $59, VK_Z = $5A VK_LWIN = $5B, \Left Windows key (Microsoft keyboard) VK_RWIN = $5C, \Right Windows key (Microsoft keyboard) VK_APPS = $5D, \Applications key (Microsoft keyboard) VK_NUMPAD0 = $60, \0 key (numeric keypad) VK_NUMPAD1 = $61, \1 key (numeric keypad) VK_NUMPAD2 = $62, \2 key (numeric keypad) VK_NUMPAD3 = $63, \3 key (numeric keypad) VK_NUMPAD4 = $64, \4 key (numeric keypad) VK_NUMPAD5 = $65, \5 key (numeric keypad) VK_NUMPAD6 = $66, \6 key (numeric keypad) VK_NUMPAD7 = $67, \7 key (numeric keypad) VK_NUMPAD8 = $68, \8 key (numeric keypad) VK_NUMPAD9 = $69, \9 key (numeric keypad) VK_MULTIPLY = $6A, \Multiply key (numeric keypad) VK_ADD = $6B, \+ (numeric keypad) VK_SEPARATOR = $6C, \Separator key (numeric keypad) VK_SUBTRACT = $6D, \Subtract key (numeric keypad) VK_DECIMAL = $6E, \Decimal key (numeric keypad) VK_DIVIDE = $6F, \Divide key (numeric keypad) VK_F1 = $70, \F1 key VK_F2 = $71, \F2 key VK_F3 = $72, \F3 key VK_F4 = $73, \F4 key VK_F5 = $74, \F5 key VK_F6 = $75, \F6 key VK_F7 = $76, \F7 key VK_F8 = $77, \F8 key VK_F9 = $78, \F9 key VK_F10 = $79, \F10 key VK_F11 = $7A, \F11 key VK_F12 = $7B, \F12 key VK_F13 = $7C, \F13 key VK_F14 = $7D, \F14 key VK_F15 = $7E, \F15 key VK_F16 = $7F, \F16 key VK_F17 = $80, \F17 key VK_F18 = $81, \F18 key VK_F19 = $82, \F19 key VK_F20 = $83, \F20 key VK_F21 = $84, \F21 key VK_F22 = $85, \F22 key VK_F23 = $86, \F23 key VK_F24 = $87, \F24 key VK_NUMLOCK = $90, \Num Lock key VK_SCROLL = $91, \Scroll Lock key VK_PROCESSKEY = $E5, \Process key VK_ATTN = $F6, \Attn key VK_CRSEL = $F7, \CrSel key VK_EXSEL = $F8, \ExSel key VK_EREOF = $F9, \Erase EOF key VK_PLAY = $FA, \Play key VK_ZOOM = $FB, \Zoom key VK_NONAME = $FC, \Reserved for future use VK_PA1 = $FD, \PA1 key VK_OEM_CLEAR = $FE; \Clear key
|