windows程序设计Virtual Key code.docx
- 文档编号:22810779
- 上传时间:2023-04-28
- 格式:DOCX
- 页数:9
- 大小:17.10KB
windows程序设计Virtual Key code.docx
《windows程序设计Virtual Key code.docx》由会员分享,可在线阅读,更多相关《windows程序设计Virtual Key code.docx(9页珍藏版)》请在冰豆网上搜索。
windows程序设计VirtualKeycode
Virtual-KeyCodes
Thefollowingtableshowsthesymbolicconstantnames,hexadecimalvalues,andmouseorkeyboardequivalentsforthevirtual-keycodesusedbythesystem.Thecodesarelistedinnumericorder.
Symbolicconstantname
Value
(hexadecimal)
Mouseorkeyboardequivalent
VK_LBUTTON
01
Leftmousebutton
VK_RBUTTON
02
Rightmousebutton
VK_CANCEL
03
Control-breakprocessing
VK_MBUTTON
04
Middlemousebutton(three-buttonmouse)
VK_XBUTTON1
05
Windows2000/XP:
X1mousebutton
VK_XBUTTON2
06
Windows2000/XP:
X2mousebutton
—
07
Undefined
VK_BACK
08
BACKSPACEkey
VK_TAB
09
TABkey
—
0A–0B
Reserved
VK_CLEAR
0C
CLEARkey
VK_RETURN
0D
ENTERkey
—
0E–0F
Undefined
VK_SHIFT
10
SHIFTkey
VK_CONTROL
11
CTRLkey
VK_MENU
12
ALTkey
VK_PAUSE
13
PAUSEkey
VK_CAPITAL
14
CAPSLOCKkey
VK_KANA
15
IMEKanamode
VK_HANGUEL
15
IMEHanguelmode(maintainedforcompatibility;useVK_HANGUL)
VK_HANGUL
15
IMEHangulmode
—
16
Undefined
VK_JUNJA
17
IMEJunjamode
VK_FINAL
18
IMEfinalmode
VK_HANJA
19
IMEHanjamode
VK_KANJI
19
IMEKanjimode
—
1A
Undefined
VK_ESCAPE
1B
ESCkey
VK_CONVERT
1C
IMEconvert
VK_NONCONVERT
1D
IMEnonconvert
VK_ACCEPT
1E
IMEaccept
VK_MODECHANGE
1F
IMEmodechangerequest
VK_SPACE
20
SPACEBAR
VK_PRIOR
21
PAGEUPkey
VK_NEXT
22
PAGEDOWNkey
VK_END
23
ENDkey
VK_HOME
24
HOMEkey
VK_LEFT
25
LEFTARROWkey
VK_UP
26
UPARROWkey
VK_RIGHT
27
RIGHTARROWkey
VK_DOWN
28
DOWNARROWkey
VK_SELECT
29
SELECTkey
VK_PRINT
2A
PRINTkey
VK_EXECUTE
2B
EXECUTEkey
VK_SNAPSHOT
2C
PRINTSCREENkey
VK_INSERT
2D
INSkey
VK_DELETE
2E
DELkey
VK_HELP
2F
HELPkey
30
0key
31
1key
32
2key
33
3key
34
4key
35
5key
36
6key
37
7key
38
8key
39
9key
—
3A–40
Undefined
41
Akey
42
Bkey
43
Ckey
44
Dkey
45
Ekey
46
Fkey
47
Gkey
48
Hkey
49
Ikey
4A
Jkey
4B
Kkey
4C
Lkey
4D
Mkey
4E
Nkey
4F
Okey
50
Pkey
51
Qkey
52
Rkey
53
Skey
54
Tkey
55
Ukey
56
Vkey
57
Wkey
58
Xkey
59
Ykey
5A
Zkey
VK_LWIN
5B
LeftWindowskey(Microsoft®Natural®keyboard)
VK_RWIN
5C
RightWindowskey(Naturalkeyboard)
VK_APPS
5D
Applicationskey(Naturalkeyboard)
—
5E
Reserved
VK_SLEEP
5F
ComputerSleepkey
VK_NUMPAD0
60
Numerickeypad0key
VK_NUMPAD1
61
Numerickeypad1key
VK_NUMPAD2
62
Numerickeypad2key
VK_NUMPAD3
63
Numerickeypad3key
VK_NUMPAD4
64
Numerickeypad4key
VK_NUMPAD5
65
Numerickeypad5key
VK_NUMPAD6
66
Numerickeypad6key
VK_NUMPAD7
67
Numerickeypad7key
VK_NUMPAD8
68
Numerickeypad8key
VK_NUMPAD9
69
Numerickeypad9key
VK_MULTIPLY
6A
Multiplykey
VK_ADD
6B
Addkey
VK_SEPARATOR
6C
Separatorkey
VK_SUBTRACT
6D
Subtractkey
VK_DECIMAL
6E
Decimalkey
VK_DIVIDE
6F
Dividekey
VK_F1
70
F1key
VK_F2
71
F2key
VK_F3
72
F3key
VK_F4
73
F4key
VK_F5
74
F5key
VK_F6
75
F6key
VK_F7
76
F7key
VK_F8
77
F8key
VK_F9
78
F9key
VK_F10
79
F10key
VK_F11
7A
F11key
VK_F12
7B
F12key
VK_F13
7C
F13key
VK_F14
7D
F14key
VK_F15
7E
F15key
VK_F16
7F
F16key
VK_F17
80H
F17key
VK_F18
81H
F18key
VK_F19
82H
F19key
VK_F20
83H
F20key
VK_F21
84H
F21key
VK_F22
85H
F22key
VK_F23
86H
F23key
VK_F24
87H
F24key
—
88–8F
Unassigned
VK_NUMLOCK
90
NUMLOCKkey
VK_SCROLL
91
SCROLLLOCKkey
92–96
OEMspecific
—
97–9F
Unassigned
VK_LSHIFT
A0
LeftSHIFTkey
VK_RSHIFT
A1
RightSHIFTkey
VK_LCONTROL
A2
LeftCONTROLkey
VK_RCONTROL
A3
RightCONTROLkey
VK_LMENU
A4
LeftMENUkey
VK_RMENU
A5
RightMENUkey
VK_BROWSER_BACK
A6
Windows2000/XP:
BrowserBackkey
VK_BROWSER_FORWARD
A7
Windows2000/XP:
BrowserForwardkey
VK_BROWSER_REFRESH
A8
Windows2000/XP:
BrowserRefreshkey
VK_BROWSER_STOP
A9
Windows2000/XP:
BrowserStopkey
VK_BROWSER_SEARCH
AA
Windows2000/XP:
BrowserSearchkey
VK_BROWSER_FAVORITES
AB
Windows2000/XP:
BrowserFavoriteskey
VK_BROWSER_HOME
AC
Windows2000/XP:
BrowserStartandHomekey
VK_VOLUME_MUTE
AD
Windows2000/XP:
VolumeMutekey
VK_VOLUME_DOWN
AE
Windows2000/XP:
VolumeDownkey
VK_VOLUME_UP
AF
Windows2000/XP:
VolumeUpkey
VK_MEDIA_NEXT_TRACK
B0
Windows2000/XP:
NextTrackkey
VK_MEDIA_PREV_TRACK
B1
Windows2000/XP:
PreviousTrackkey
VK_MEDIA_STOP
B2
Windows2000/XP:
StopMediakey
VK_MEDIA_PLAY_PAUSE
B3
Windows2000/XP:
Play/PauseMediakey
VK_LAUNCH_MAIL
B4
Windows2000/XP:
StartMailkey
VK_LAUNCH_MEDIA_SELECT
B5
Windows2000/XP:
SelectMediakey
VK_LAUNCH_APP1
B6
Windows2000/XP:
StartApplication1key
VK_LAUNCH_APP2
B7
Windows2000/XP:
StartApplication2key
—
B8-B9
Reserved
VK_OEM_1
BA
Usedformiscellaneouscharacters;itcanvarybykeyboard.
Windows2000/XP:
FortheUSstandardkeyboard,the';:
'key
VK_OEM_PLUS
BB
Windows2000/XP:
Foranycountry/region,the'+'key
VK_OEM_COMMA
BC
Windows2000/XP:
Foranycountry/region,the','key
VK_OEM_MINUS
BD
Windows2000/XP:
Foranycountry/region,the'-'key
VK_OEM_PERIOD
BE
Windows2000/XP:
Foranycountry/region,the'.'key
VK_OEM_2
BF
Usedformiscellaneouscharacters;itcanvarybykeyboard.
Windows2000/XP:
FortheUSstandardkeyboard,the'/?
'key
VK_OEM_3
C0
Usedformiscellaneouscharacters;itcanvarybykeyboard.
Windows2000/XP:
FortheUSstandardkeyboard,the'`~'key
—
C1–D7
Reserved
—
D8–DA
Unassigned
VK_OEM_4
DB
Usedformiscellaneouscharacters;itcanvarybykeyboard.
Windows2000/XP:
FortheUSstandardkeyboard,the'[{'key
VK_OEM_5
DC
Usedformiscellaneouscharacters;itcanvarybykeyboard.
Windows2000/XP:
FortheUSstandardkeyboard,the'\|'key
VK_OEM_6
DD
Usedformiscellaneouscharacters;itcanvarybykeyboard.
Windows2000/XP:
FortheUSstandardkeyboard,the']}'key
VK_OEM_7
DE
Usedformiscellaneouscharacters;itcanvarybykeyboard.
Windows2000/XP:
FortheUSstandardkeyboard,the'single-quote/double-quote'key
VK_OEM_8
DF
Usedformiscellaneouscharacters;itcanvarybykeyboard.
—
E0
Reserved
E1
OEMspecific
VK_OEM_102
E2
Windows2000/XP:
EithertheanglebracketkeyorthebackslashkeyontheRT102-keykeyboard
E3–E4
OEMspecific
VK_PROCESSKEY
E5
Windows95/98/Me,Windows NT4.0,Windows2000/XP:
IMEPROCESSkey
E6
OEMspecific
VK_PACKET
E7
Windows2000/XP:
UsedtopassUnicodecharactersasiftheywerekeystrokes.TheVK_PACKETkeyisthelowwordofa32-bitVirtualKeyvalueusedfornon-keyboardinputmethods.Formoreinformation,seeRemarkinKEYBDINPUT,SendInput,WM_KEYDOWN,andWM_KEYUP
—
E8
Unassigned
E9–F5
OEMspecific
VK_ATTN
F6
Attnkey
VK_CRSEL
F7
CrSelkey
VK_EXSEL
F8
ExSelkey
VK_EREOF
F9
EraseEOFkey
VK_PLAY
FA
Playkey
VK_ZOOM
FB
Zoomkey
VK_NONAME
FC
Reservedforfutureuse
VK_PA1
FD
PA1key
VK_OEM_CLEAR
FE
Clearkey
长沙5XTO9j1UBZf3
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- windows程序设计Virtual Key code windows 程序设计 Virtual
![提示](https://static.bdocx.com/images/bang_tan.gif)