Keyboard Key Values Table
Constant name hexadecimal value decimal value corresponding key
Vk_lbutton 01 1 left mouse button
Vk_rbutton 02 2 right mouse button
Vk-cancel 3 ctrl+break (usually no processing required)
Vk_mbutton 04 4 middle mouse button (three-button mouse)
Vk_back 8 backspace key
Vk_tab 9 TAB Key
Vk_clear 0C CLEAR key (number pad when Num lock is off 5)
Vk_return 0D Enter key
Vk_shift SHIFT Key
Vk_control CTRL key
Vk_menu ALT key
Vk_pause PAUSE Key
Vk_capital CAPS LOCK key
Vk_escape 1 B ESE key
Vk_space SPACEBAR key
Vk_prior Page up key
Vk_next Page domw Key
Vk_end the END key
Vk_home HOME button
Vk_left to the left ARROW key (←)
Vk_up Up ARROW key (↑)
Vk_right right ARROW key (→)
Vk_down arrow key (↓)
Vk_select Select Key
Vk_print 2A 42
Vk_execute 2B EXECUTE Key
Vk_snapshot 2C Print Screen key (capture)
Vk_insert 2D ins key (number pad when Num lock is off 0)
Vk_delete 2E (numeric keypad when Num lock is off).
Vk_help 2F Help Key
Vk_0 30 48 0 Key
Vk_1 31 49 1 key
Vk_2 32 50 2 Key
Vk_3 33 51 3 Key
Vk_4 34 52 4 Key
Vk_5 35 53 5 key
Vk_6 36 54 6 Key
Vk_7 37 55 7 key
Vk_8 38 56 8 Key
Vk_9 39 57 9 key
Vk_a A Key
Vk_b B Key
Vk_c-C Key
Vk_d-D Key
Vk_e E Key
Vk_f F Key
Vk_g G Key
Vk_h H Key
Vk_i I Key
Vk_j 4 a J key
Vk_k 4 B K key
vk_l 4C L Key
Vk_m 4D M Key
Vk_n 4E + N key
Vk_o 4F O Key
Vk_p P Key
Vk_q Yi Ba Q key
Vk_r-G-R key
vk_s-S-Key
vk_t T Key
Vk_u U-Key
Vk_v V-Key
Vk_w W Key
Vk_x X Key
Vk_y Y Key
Vk_z 5A Z Key
VK_NUMPAD0 60 96 number Key 0 key
VK_NUMPAD1 61 97 number Key 1 key
VK_NUMPAD2 62 98 Number Key 2 key
VK_NUMPAD3 62 99 number Key 3 key
VK_NUMPAD4 64 100 number key 4 key
VK_NUMPAD5 65 101 Number Key 5 key
VK_NUMPAD6 66 102 Number Key 6 key
VK_NUMPAD7 67 103 Number Key 7 key
VK_NUMPAD8 68 104 Number Key 8 key
VK_NUMPAD9 69 105 Number Key 9 key
Vk_multiply 6A 106 * keys on the numeric keypad
Vk_add 6B 107 + keys on the numeric keypad
Vk_separator 6C 108 SEPARATOR Key
Vk_subtract 6D 109-key on the numeric keypad
Vk_decimal 6E 110 the. Key on the numeric keypad
Vk_divide 6F 111/Key on the numeric keypad
VK_F1 F1 Key S
VK_F2 113 F2 Key
VK_F3 F3 Key
Vk_f4 F4 Key
Vk_f5 F5 Key
VK_F6 117 F6 Key
VK_F7 118 F7 Key
Vk_f8 119 F8 Key
VK_F9 F9 Key
VK_F10 121 F10 Key
VK_F11 7A 122 F11 Key
VK_F12 7B 123 F12 Key
Vk_numlock 144 Num Lock key
Vk_scroll 145 SCROLL Lock key
Not mentioned above: (both on the big keyboard)
Vk_lwin 91 left Win key
Vk_rwin 92 Right Win key
Vk_apps 93 Right Ctrl left button, click on the equivalent right mouse button, will pop up the shortcut menu
186;(Semicolon)
187 = key
188, key (comma)
189-Key (minus)
190. Key (Period)
191/Key
192 ' key (ESC below)
219 [Key
220 keys
221] Key
222 ' key (quotation marks)
Keyboard key value