Windows虚拟键盘码

Windows虚拟键盘码

虚拟键码

对应值

对应键

 

虚拟键码

对应值

对应键

VK_LBUTTON

1

鼠标左键

 

VK_NUMPAD6

102

小键盘 6

VK_RBUTTON

2

鼠标右键

 

VK_NUMPAD7

103

小键盘 7

VK_CANCEL

3

Cancel

 

VK_NUMPAD8

104

小键盘 8

VK_MBUTTON

4

鼠标中键

 

VK_NUMPAD9

105

小键盘 9

VK_XBUTTON1

5

 

VK_MULTIPLY

106

小键盘 *

VK_XBUTTON2

6

 

VK_ADD

107

小键盘 +

VK_BACK

8

Backspace

 

VK_SEPARATOR

108

小键盘 Enter

VK_TAB

9

Tab

 

VK_SUBTRACT

109

小键盘 -

VK_CLEAR

12

Clear

 

VK_DECIMAL

110

小键盘 .

VK_RETURN

13

Enter

 

VK_DIVIDE

111

小键盘 /

VK_SHIFT

16

Shift

 

VK_F1

112

F1

VK_CONTROL

17

Ctrl

 

VK_F2

113

F2

VK_MENU

18

Alt

 

VK_F3

114

F3

VK_PAUSE

19

Pause

 

VK_F4

115

F4

VK_CAPITAL

20

Caps Lock

 

VK_F5

116

F5

VK_KANA

21

 

VK_F6

117

F6

VK_HANGUL

21

 

VK_F7

118

F7

VK_JUNJA

23

 

VK_F8

119

F8

VK_FINAL

24

 

VK_F9

120

F9

VK_HANJA

25

 

VK_F10

121

F10

VK_KANJI

25*

 

VK_F11

122

F11

VK_ESCAPE

27

Esc

 

VK_F12

123

F12

VK_CONVERT

28

 

VK_F13

124

VK_NONCONVERT

29

 

VK_F14

125

VK_ACCEPT

30

 

VK_F15

126

VK_MODECHANGE

31

 

VK_F16

127

VK_SPACE

32

Space

 

VK_F17

128

VK_PRIOR

33

Page Up

 

VK_F18

129

VK_NEXT

34

Page Down

 

VK_F19

130

VK_END

35

End

 

VK_F20

131

VK_HOME

36

Home

 

VK_F21

132

VK_LEFT

37

Left Arrow

 

VK_F22

133

VK_UP

38

Up Arrow

 

VK_F23

134

VK_RIGHT

39

Right Arrow

 

VK_F24

135

VK_DOWN

40

Down Arrow

 

VK_NUMLOCK

144

Num Lock

VK_SELECT

41

Select

 

VK_SCROLL

145

Scroll

VK_PRINT

42

Print

 

VK_LSHIFT

160

VK_EXECUTE

43

Execute

 

VK_RSHIFT

161

VK_SNAPSHOT

44

Snapshot

 

VK_LCONTROL

162

VK_INSERT

45

Insert

 

VK_RCONTROL

163

VK_DELETE

46

Delete

 

VK_LMENU

164

VK_HELP

47

Help

 

VK_RMENU

165

48

0

 

VK_BROWSER_BACK

166

49

1

 

VK_BROWSER_FORWARD

167

50

2

 

VK_BROWSER_REFRESH

168

51

3

 

VK_BROWSER_STOP

169

52

4

 

VK_BROWSER_SEARCH

170

53

5

 

VK_BROWSER_FAVORITES

171

54

6

 

VK_BROWSER_HOME

172

55

7

 

VK_VOLUME_MUTE

173

VolumeMute

56

8

 

VK_VOLUME_DOWN

174

VolumeDown

57

9

 

VK_VOLUME_UP

175

VolumeUp

65

A

 

VK_MEDIA_NEXT_TRACK

176

66

B

 

VK_MEDIA_PREV_TRACK

177

67

C

 

VK_MEDIA_STOP

178

68

D

 

VK_MEDIA_PLAY_PAUSE

179

69

E

 

VK_LAUNCH_MAIL

180

70

F

 

VK_LAUNCH_MEDIA_SELECT

181

71

G

 

VK_LAUNCH_APP1

182

72

H

 

VK_LAUNCH_APP2

183

73

I

 

VK_OEM_1

186

; :

74

J

 

VK_OEM_PLUS

187

= +

75

K

 

VK_OEM_COMMA

188

76

L

 

VK_OEM_MINUS

189

- _

77

M

 

VK_OEM_PERIOD

190

78

N

 

VK_OEM_2

191

/ ?

79

O

 

VK_OEM_3

192

` ~

80

P

 

VK_OEM_4

219

[ {

81

Q

 

VK_OEM_5

220

\ |

82

R

 

VK_OEM_6

221

] }

83

S

 

VK_OEM_7

222

' "

84

T

 

VK_OEM_8

223

85

U

 

VK_OEM_102

226

86

V

 

VK_PACKET

231

87

W

 

VK_PROCESSKEY

229

88

X

 

VK_ATTN

246

89

Y

 

VK_CRSEL

247

90

Z

 

VK_EXSEL

248

VK_LWIN

91

 

VK_EREOF

249

VK_RWIN

92

 

VK_PLAY

250

VK_APPS

93

 

VK_ZOOM

251

VK_SLEEP

95

 

VK_NONAME

252

VK_NUMPAD0

96

小键盘 0

 

VK_PA1

253

VK_NUMPAD1

97

小键盘 1

 

VK_OEM_CLEAR

254

VK_NUMPAD2

98

小键盘 2

 

 

 

 

VK_NUMPAD3

99

小键盘 3

 

 

 

 

VK_NUMPAD4

100

小键盘 4

 

 

 

 

VK_NUMPAD5

101

小键盘 5

 

 

 

 

 

你可能感兴趣的:(C++,C#,C)