Virtual Key List in Windows messages

Source: Internet
Author: User
Vk_lbutton left mouse button 0x01
Vk_rbutton right-click 0x02
Vk_cancel Ctrl + break 0x03
Vk_mbutton, right-click 0x04

Vk_back backspace Key 0x08
Vk_tab Key 0x09

Vk_return enter key 0x0d

Vk_shift Key 0x10
Vk_control ctrl key 0x11
Vk_menu Alt key 0x12
Vk_pause pause Key 0x13
Vk_capital Caps Lock Key 0x14

Vk_escape ESC key 0x1b

Vk_space Space key 0x20
Vk_prior page up key 0x21
Vk_next page down key 0x22
Vk_end Key 0x23
Vk_home Key 0x24
Vk_left left arrow 0x25
Vk_up up arrow 0x26
Vk_right right arrow 0x27
Vk_down arrow 0x28
Vk_snapshot print screen key 0x2c
Vk_insert Insert key 0x2d
Vk_delete key 0x2e

'0'-'9' number 0-9 0x30-0x39
'A'-'Z' letter A-Z 0x41-0x5a

Vk_lwin left winkey (available on 104 keyboard) 0x5b
Vk_rwin right winkey (available on 104 keyboard) 0x5c
Vk_apps appskey (available on 104 keyboard) 0x5d

Vk_numpad0 keypad 0 Key 0x60
Vk_numpad1 keypad 1 Key 0x61
Vk_numpad2 keypad 2 Key 0x62
Vk_numpad3 keypad 3 key 0x63
Vk_numpad4 keypad 4 Key 0x64
Vk_numpad5 keypad 5 Key 0x65
Vk_numpad6 keypad 6 Key 0x66
Vk_numpad7 keypad 7 Key 0x67
Vk_numpad8 keypad 8 keys 0x68
Vk_numpad9 keypad 9 Key 0x69

Vk_f1-vk_f24 function key F1-f24 0x70-0x87

Vk_numlock Num Lock Key 0x90
Vk_scroll scroll Lock Key 0x91

Virtual key in directinput

Dik_0-dik_9 number 0-9
Dik_a-dik_z letter A-z
Dik_f1-dik_f12 function key F1-F12
Dik_back backspace key
Dik_tab key
Dik_return enter key

Dik_lshift left shift key
Dik_rshift right shift key
Left ctrl key of dik_lcontrol
Dik_rcontrol right CTRL
Left Alt key of dik_lmenu
Dik_rmenu right Alt key
Dik_pause pause key
Dik_capital Caps Lock key

Dik_escape ESC key

Dik_space Space key
Dik_prior page up key
Dik_next page down
Dik_end key
Dik_home key
Left arrow of dik_left
Dik_up up arrow
Right arrow of dik_right
Dik_down down arrow
Dik_sysrq sysrq key
Dik_insert key
Dik_delete key

Dik_lwin left winkey (available on 104 keyboard)
Dik_rwin right winkey (available on 104 keyboard)
Dik_apps appskey (available on 104 keyboard)

Dik_numpad0-dik_numpad0 keypad 0-9 Key

Dik_numlock Num Lock key
Dik_scroll scroll Lock key

Related Article

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.