Virtual key code table (reference)

Source: Internet
Author: User
Virtual key code table
Virtual key code Corresponding value Corresponding Key
Vk_lbutton 1 Left mouse button
Vk_rbutton 2 Right-click
Vk_cancel 3 Cancel
Vk_mbutton 4 Middle mouse
Vk_xbutton1 5
Vk_xbutton2 6
Vk_back 8 Backspace
Vk_tab 9 Tab
Vk_clear 12 Clear
Vk_return 13 Enter
Vk_shift 16 Shift
Vk_control 17 CTRL
Vk_menu 18 ALT
Vk_pause 19 Pause
Vk_capital 20 Caps Lock
Vk_kana 21
Vk_hangul 21
Vk_junja 23
Vk_final 24
Vk_hanja 25
Vk_kanji 25 *
Vk_escape 27 ESC
Vk_convert 28
Vk_nonconvert 29
Vk_accept 30
Vk_modechange 31
Vk_space 32 Space
Vk_prior 33 Page up
Vk_next 34 Page down
Vk_end 35 End
Vk_home 36 Home
Vk_left 37 Left arrow
Vk_up 38 Up Arrow
Vk_right 39 Right arrow
Vk_down 40 Down Arrow
Vk_select 41 Select
Vk_print 42 Print
Vk_execute 43 Execute
Vk_snapshot 44 Snapshot
Vk_insert 45 Insert
Vk_delete 46 Delete
Vk_help 47 Help
48 0
49 1
50 2
51 3
52 4
53 5
54 6
55 7
56 8
57 9
65 A
66 B
67 C
68 D
69 E
70 F
71 G
72 H
73 I
74 J
75 K
76 L
77 M
78 N
79 O
80 P
81 Q
82 R
83 S
84 T
85 U
86 V
87 W
88 X
89 Y
90 Z
Vk_lwin 91
Vk_rwin 92
Vk_apps 93
Vk_sleep 95
Vk_numpad0 96 Keypad 0
Vk_numpad1 97 Keypad 1
Vk_numpad2 98 Keypad 2
Vk_numpad3 99 Keypad 3
Vk_numpad4 100 Keypad 4
Vk_numpad5 101 Keypad 5
Vk_numpad6 102 Keypad 6
Vk_numpad7 103 Keypad 7
VK_NUMPAD8 104 Keypad 8
VK_NUMPAD9 105 Keypad 9
VK_MULTIPLY 106 Keypad *
VK_ADD 107 Keypad +
VK_SEPARATOR 108 Enter
VK_SUBTRACT 109 Keypad-
VK_DECIMAL 110 Keypad.
VK_DIVIDE 111 Keypad/
VK_F1 112 F1
VK_F2 113 F2
VK_F3 114 F3
VK_F4 115 F4
VK_F5 116 F5
VK_F6 117 F6
VK_F7 118 F7
VK_F8 119 F8
VK_F9 120 F9
VK_F10 121 F10
VK_F11 122 F11
VK_F12 123 F12
VK_F13 124
VK_F14 125
VK_F15 126
VK_F16 127
VK_F17 128
VK_F18 129
VK_F19 130
VK_F20 131
VK_F21 132
VK_F22 133
VK_F23 134
VK_F24 135
VK_NUMLOCK 144 Num Lock
VK_SCROLL 145 Scroll
VK_LSHIFT 160
VK_RSHIFT 161
VK_LCONTROL 162
VK_RCONTROL 163
VK_LMENU 164
VK_RMENU 165
VK_BROWSER_BACK 166
VK_BROWSER_FORWARD 167
VK_BROWSER_REFRESH 168
VK_BROWSER_STOP 169
VK_BROWSER_SEARCH 170
VK_BROWSER_FAVORITES 171
VK_BROWSER_HOME 172
VK_VOLUME_MUTE 173 VolumeMute
VK_VOLUME_DOWN 174 VolumeDown
VK_VOLUME_UP 175 VolumeUp
VK_MEDIA_NEXT_TRACK 176
VK_MEDIA_PREV_TRACK 177
VK_MEDIA_STOP 178
VK_MEDIA_PLAY_PAUSE 179
VK_LAUNCH_MAIL 180
VK_LAUNCH_MEDIA_SELECT 181
VK_LAUNCH_APP1 182
VK_LAUNCH_APP2 183
VK_OEM_1 186 ;:
VK_OEM_PLUS 187 = +
VK_OEM_COMMA 188
VK_OEM_MINUS 189 -_
VK_OEM_PERIOD 190
VK_OEM_2 191 /?
VK_OEM_3 192 '~
VK_OEM_4 219 [{
VK_OEM_5 220 \ |
VK_OEM_6 221 ]}
VK_OEM_7 222 '"
VK_OEM_8 223
VK_OEM_102 226
VK_PACKET 231
VK_PROCESSKEY 229
VK_ATTN 246
VK_CRSEL 247
VK_EXSEL 248
VK_EREOF 249
VK_PLAY 250
VK_ZOOM 251
VK_NONAME 252
VK_PA1 253
VK_OEM_CLEAR 254

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.