Virtual-key codes virtual key code

Source: Internet
Author: User

Virtual-key codes

--------------------------------------------------------------------------------

The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system. The codes are listed in numeric order.

Constants

Vk_lbutton (01)
Left mouse button

Vk_rbutton (02)
Right mouse button

Vk_cancel (03)
Control-break Processing

Vk_mbutton (04)
Middle mouse button (three-button mouse)

Vk_xbutton1 (05)
Windows 2000/XP: X1 mouse button

Vk_xbutton2 (06)
Windows 2000/XP: X2 mouse button

-(07)
Undefined

Vk_back (08)
Backspace key

Vk_tab (09)
Tab key

-(0a-0b)
Reserved

Vk_clear (0C)
Clear key

Vk_return (0d)
Enter key

-(0e-0f)
Undefined

Vk_shift (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)
Input Method Editor (IME) Kana Mode

Vk_hanguel (15)
IME hanguel mode (maintained for compatibility; Use vk_hangul)

Vk_hangul (15)
IME hangul Mode

-(16)
Undefined

Vk_junja (17)
IME junja Mode

Vk_final (18)
IME final Mode

Vk_hanja (19)
IME Hanja Mode

Vk_kanji (19)
IME Kanji Mode

-(1A)
Undefined

Vk_escape (1B)
ESC key

Vk_convert (1C)
IME convert

Vk_nonconvert (1D)
IME nonconvert

Vk_accept (1E)
IME accept

Vk_modechange (1f)
IME mode change request

Vk_space (20)
Spacebar

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

Vk_execute (2b)
Execute key

Vk_snapshot (2C)
Print Screen key

Vk_insert (2D)
INS key

Vk_delete (2E)
Del key

Vk_help (2f)
Help key

(30)
0 Key

(31)
1 key

(32)
2 key

(33)
3 key

(34)
4 Key

(35)
5 key

(36)
6 Key

(37)
7 key

(38)
8 Key

(39)
9 Key

-(3a-40)
Undefined

(41)
A key

(42)
B key

(43)
C key

(44)
D key

(45)
E key

(46)
F key

(47)
G key

(48)
H key

(49)
I key

(4A)
J key

(4B)
K key

(4C)
L key

(4D)
M key

(4E)
N key

(4f)
O key

(50)
P key

(51)
Q key

(52)
R key

(53)
S key

(54)
T key

(55)
U key

(56)
V Key

(57)
W key

(58)
X key

(59)
Y key

(5A)
Z key

Vk_lwin (5b)
Left Windows key (Microsoft? Natural? Keyboard)

Vk_rwin (5c)
Right Windows key (natural keyboard)

Vk_apps (5D)
Applications key (natural keyboard)

-(5E)
Reserved

Vk_sleep (5f)
Computer sleep key

Vk_numpad0 (60)
Numeric keypad 0 Key

Vk_numpad1 (61)
Numeric keypad 1 key

Vk_numpad2 (62)
Numeric keypad 2 key

Vk_numpad3 (63)
Numeric keypad 3 key

Vk_numpad4 (64)
Numeric keypad 4 Key

Vk_numpad5 (65)
Numeric keypad 5 key

Vk_numpad6 (66)
Numeric keypad 6 Key

Vk_numpad7 (67)
Numeric keypad 7 key

Vk_numpad8 (68)
Numeric keypad 8 Key

Vk_numpad9 (69)
Numeric keypad 9 Key

Vk_multiply (6a)
Multiply key

Vk_add (6B)
Add key

Vk_separator (6C)
Separator key

Vk_subtract (6D)
Subtract key

Vk_decimal (6e)
Decimal key

Vk_divide (6f)
Divide key

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 h)
F17 key

Vk_f18 (81 h)
F18 key

Vk_f19 (82 H)
F19 key

Vk_f20 (83 H)
F20 key

Vk_f21 (84 h)
F21 key

Vk_f22 (85 H)
F22 key

Vk_f23 (86 H)
F23 key

Vk_f24 (87 h)
F24 key

-(88-8f)
Unassigned

Vk_numlock (90)
Num Lock key

Vk_scroll (91)
Scroll Lock key

(92-96)
OEM specific

-(97-9f)
Unassigned

Vk_lshift (A0)
Left Shift key

Vk_rshift (A1)
Right Shift Key

Vk_lcontrol (A2)
Left Control Key

Vk_rcontrol (A3)
Right Control Key

Vk_lmenu (A4)
Left menu key

Vk_rmenu (A5)
Right menu key

Vk_browser_back (A6)
Windows 2000/XP: browser back key

Vk_browser_forward (A7)
Windows 2000/XP: browser forward key

Vk_browser_refresh (A8)
Windows 2000/XP: browser refresh key

Vk_browser_stop (A9)
Windows 2000/XP: browser stop key

Vk_browser_search (aa)
Windows 2000/XP: browser search key

Vk_browser_favorites (AB)
Windows 2000/XP: browser favorites key

Vk_browser_home (AC)
Windows 2000/XP: browser start and Home Key

Vk_volume_mute (AD)
Windows 2000/XP: volume mute key

Vk_volume_down (AE)
Windows 2000/XP: volume down key

Vk_volume_up (AF)
Windows 2000/XP: volume up key

Vk_media_next_track (B0)
Windows 2000/XP: next track key

Vk_media_prev_track (B1)
Windows 2000/XP: previous track key

Vk_media_stop (B2)
Windows 2000/XP: Stop media key

Vk_media_play_pause (B3)
Windows 2000/XP: Play/pause media key

Vk_launch_mail (B4)
Windows 2000/XP: Start mail key

Vk_launch_media_select (B5)
Windows 2000/XP: Select media key

Vk_launch_app1 (B6)
Windows 2000/XP: Start application 1 key

Vk_launch_app2 (B7)
Windows 2000/XP: Start application 2 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.