Virtual key value table

Source: Internet
Author: User

 

Http://blog.csdn.net/movayhust/archive/2009/08/12/4439676.aspx reprinted.

 

Virtual key Hexadecimal value Decimal Value Corresponding keyboard or mouse key
Vk_lbutton 01 1 Left mouse button
Vk_rbutton 02 2 Right-click
Vk_cancel 03 3 CTRL-Break Key
Vk_mbutton 04 4 Middle mouse
Vk_back 08 8 Backspace key
Vk_tab 09 9 Tab key
Vk_clear 0c 12 Clear key
Vk_return 0d 13 Enter
Vk_shift 10 16 Shift key
Vk_control 11 17 CTRL
Vk_menu 12 18 Alt key
Vk_pause 13 19 Pause key
Vk_capital 14 20 Caps Lock key
Vk_escape 1B 27 ESC key
Vk_space 20 32 Space key
Vk_prior 21 33 Page up key
Vk_next 22 34 Page down key
Vk_end 23 35 End key
Vk_home 24 36 Home Key
Vk_left 25 37 Primary Key
Vk_up 26 38 Primary Key
Vk_right 27 39 → Key
Vk_down 28 40 Primary Key
Vk_select 29 41 Select key
Vk_print 2a 42 Print key
Vk_execute 2b 43 Execute key
Vk_snapshot 2c 44 Print Screen key
Vk_insert 2d 45 INS key
Vk_delete 2e 46 Del key
Vk_help 2f 47 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 keys
Vk_7 37 55 Key 7
Vk_8 38 56 8 Key
Vk_9 39 57 9 Key
Vk_a 41 65 Key
Vk_ B 42 66 Key B
Vk_c 43 67 C key
Vk_d 44 68 D key
Vk_e 45 69 Key E
Vk_f 46 70 F key
Vk_g 47 71 G key
Vk_h 48 72 H key
Vk_ I 49 73 I key
Vk_j 4A 74 J key
Vk_k 4b 75 K key
Vk_l 4C 76 L key
Vk_m 4d 77 M key
Vk_n 4e 78 N key
Vk_o 4f 79 O key
Vk_p 50 80 P key
Vk_q 51 81 Q key
Vk_r 52 82 R key
Vk_s 53 83 S key
Vk_t 54 84 T key
Vk_u 55 85 U key
Vk_v 56 86 V Key
Vk_w 57 87 W key
Vk_x 58 88 X key
Vk_y 59 89 Y key
Vk_z 5A 90 Z key
Vk_lwin 5b 91 Left Windows key
Vk_rwin 5C 92 Right Windows key
Vk_apps 5D 93 Application key
Vk_sleep 5f 95 Sleep key
Vk_numpad0 60 96 Keypad 0
Vk_numpad1 61 97 Keypad 1
Vk_numpad2 62 98 2-key keypad
Vk_numpad3 63 99 3-key keypad
Vk_numpad4 64 100 4-key keypad
Vk_numpad5 65 101 5-key keypad
Vk_numpad6 66 102 6-key keypad
Vk_numpad7 67 103 Keypad 7
Vk_numpad8 68 104 8-key keypad
Vk_numpad9 69 105 Keypad 9
Vk_multiply 6a 106 Multiplication key
Vk_add 6b 107 + Key
Vk_separator 6c 108 Split key
Vk_substract 6d 109 Minus sign
Vk_decimal 6e 110 Decimal key
Vk_divide 6f 111 Division key
Vk_f1 70 12 F1 key
Vk_f2 71 113 F2 key
Vk_f3 72 114 F3 key
Vk_f4 73 115 F4 key
Vk_f5 74 116 F5
Vk_f6 75 117 F6 key
Vk_f7 76 118 F7 key
Vk_f8 77 119 F8
Vk_f9 78 120 F9 key
Vk_f10 79 121 F10 key
Vk_f11 7A 122 F11 key
Vk_f12 7b 123 F12 key
Vk_f13 7c 124 F13 key
Vk_f14 7D 125 F14 key
Vk_f15 7E 126 F15 key
Vk_f16 7f 127 F16 key
Vk_f17 80 128 F17 key
Vk_f18 81 129 F18 key
Vk_f19 82 130 F19 key
Vk_f20 83 131 F20 key
Vk_f21 84 132 F21 key
Vk_f22 85 133 F22 key
Vk_f23 86 134 F23 key
Vk_f24 87 135 F24 key
Vk_numlock 90 144 Num Lock key
Vk_scroll 91 45 Scroll Lock key
Vk_lshift A0 160 Left Shift key
Vk_rshift A1 161 Right Shift Key
Vk_lcontrol A2 162 CTRL
Vk_rcontrol A3 163 Right CTRL
Vk_lmenu A4 164 Left Alt key
Vk_rmenu A5 165 Right Alt key

 

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.