4.2.3. 键值对照表

虚拟键

相应键盘或鼠标键

LBUTTON

1

Left mouse button (鼠标左键)

RBUTTON

2

Right mouse button(鼠标右键)

CANCEL

3

Ctrl-Break

MBUTTON

4

Middle mouse button (鼠标中键)

XBUTTON1

5

Windows 2000/XP:X1 mouse button

XBUTTON2

6

Windows 2000/XP:X2 mouse button

BACK

8

Backspace

TAB

9

Tab

CLEAR

12

Clear

RETURN

13

Enter

RERETURN

13

Enter

SHIFT

16

Shift

CONTROL

17

Ctrl

ALT

18

Alt

PAUSE

19

Pause

CAPSLOCK

20

Caps Lock

KANA

21

Input Method Editor (IME) Kana mode

HANGUL

22

IME Hangul mode

JUNJA

23

IME Junja mode

FINAL

24

IME final mode

HANJA

25

IME Hanja mode

KANJI

26

IME Kanji mode

ESCAPE

27

Esc

CONVERT

28

IME convert

NONCONVERT

29

IME nonconvert

ACCEPT

30

IME accept

MODECHANGE

31

IME mode change request

SPACE

32

Space

PAGE_UP

33

Page Up

PAGE_DOWN

34

Page Down

END

35

End

HOME

36

Home

LEFT

37

LEFT ARROW key 键)

UP

38

UP ARROW key (↑键)

RIGHT

39

RIGHT ARROW key 键)

DOWN

40

DOWN ARROW key 键)

SELECT

41

Select

PRINT

42

Print

EXECUTE

43

Execute

SNAPSHOT

44

PrtSc(截图)

INSERT

45

Ins

DELETE

46

Del

HELP

47

Help

KEY_0

48

0

KEY_1

49

1

KEY_2

50

2

KEY_3

51

3

KEY_4

52

4

KEY_5

53

5

KEY_6

54

6

KEY_7

55

7

KEY_8

56

8

KEY_9

57

9

KEY_A

65

A

KEY_B

66

B

KEY_C

67

C

KEY_D

68

D

KEY_E

69

E

KEY_F

70

F

KEY_G

71

G

KEY_H

72

H

KEY_I

73

I

KEY_J

74

J

KEY_K

75

K

KEY_L

76

L

KEY_M

77

M

KEY_N

78

N

KEY_O

79

O

KEY_P

80

P

KEY_Q

81

Q

KEY_R

82

R

KEY_S

83

S

KEY_T

84

T

KEY_U

85

U

KEY_V

86

V

KEY_W

87

W

KEY_X

88

X

KEY_Y

89

Y

KEY_Z

90

Z

LWIN

91

Left Windows key (左Windows键,Microsoft Natural keyboard

RWIN

92

Right Windows (右Windows键,Natural keyboard

APPS

93

Applications key (应用程序键,Natural keyboard

SLEEP

95

Computer Sleep key (休眠键)

NUMPAD0

96

小数字键盘0

NUMPAD1

97

小数字键盘1

NUMPAD2

98

小数字键盘2

NUMPAD3

99

小数字键盘3

NUMPAD4

100

小数字键盘4

NUMPAD5

101

小数字键盘5

NUMPAD6

102

小数字键盘6

NUMPAD7

103

小数字键盘7

NUMPAD8

104

小数字键盘8

NUMPAD9

105

小数字键盘9

MULTIPLY

106

Multiply key (乘号键)

ADD

107

Add key (加号键)

SEPARATOR

108

Separator key(分割键)

SUBSTRACT

109

Subtract key (减号键)

DECIMAL

110

Decimal key (小数点键)

DIVIDE

111

Divide key (除号键)

F1

112

F1

F2

113

F2

F3

114

F3

F4

115

F4

F5

116

F5

F6

117

F6

F7

118

F7

F8

119

F8

F9

120

F9

F10

121

F10

F11

122

F11

F12

123

F12

F13

124

F13

F14

125

F14

F15

126

F15

F16

127

F16

F17

128

F17

F18

129

F18

F19

130

F19

F20

131

F20

F21

132

F21

F22

133

F22

F23

134

F23

F24

135

F24

NUMLOCK

144

Num Lock

SCROLL

145

Scroll Lock

LSHIFT

160

Shift

RSHIFT

161

Shift

LCONTROL

162

Ctrl

RCONTROL

163

Ctrl

LMENU

164

Menu

RMENU

165

Menu

BROWSER_BACK

166

Windows 2000/XP: Browser Back key

BROWSER_FORWARD

167

Windows 2000/XP: Browser Forward key

BROWSER_REFRESH

168

Windows 2000/XP: Browser Refresh key

BROWSER_STOP

169

Windows 2000/XP: Browser Stop key

BROWSER_SEARCH

170

Windows 2000/XP: Browser Search key

BROWSER_FAVORITES

171

Windows 2000/XP: Browser Favorites key

BROWSER_HOME

172

Windows 2000/XP: Browser Start and Home key

VOLUME_MUTE

173

Windows 2000/XP: Volume Mute key

VOLUME_DOWN

174

Windows 2000/XP: Volume Down key

VOLUME_UP

175

Windows 2000/XP: Volume Up key

MEDIA_NEXT_TRACK

176

Windows 2000/XP: Next Track key

MEDIA_PREV_TRACK

177

Windows 2000/XP: Previous Track key

MEDIA_STOP

178

Windows 2000/XP: Stop Media key

MEDIA_PLAY_PAUSE

179

Windows 2000/XP: Play/Pause Media key

LAUNCH_MAIL

180

Windows 2000/XP: Start Mail key

LAUNCH_MEDIA_SELECT

181

Windows 2000/XP: Select Media key

LAUNCH_APP1

182

Windows 2000/XP: Start Application 1 key

LAUNCH_APP2

183

Windows 2000/XP: Start Application 2 key

OEM_1

186

Used for miscellaneous characters; it can vary by keyboard.

OEM_PLUS

187

the '+' key

OEM_COMMA

188

the ',' key

OEM_MINUS

189

the '-' key

OEM_PERIOD

190

the '.' key

OEM_2

191

Used for miscellaneous characters; it can vary by keyboard.

OEM_3

192

Used for miscellaneous characters; it can vary by keyboard.

OEM_4

219

Used for miscellaneous characters; it can vary by keyboard.

OEM_5

220

Used for miscellaneous characters; it can vary by keyboard.

OEM_6

221

Used for miscellaneous characters; it can vary by keyboard.

OEM_7

222

Used for miscellaneous characters; it can vary by keyboard.

OEM_8

223

Used for miscellaneous characters; it can vary by keyboard.

OEM_102

226

Either the angle bracket key or the backslash key 102-key keyboard

PROCESSKEY

229

IME PROCESS key

PACKET

231

Windows 2000/XP: Used to pass Unicode characters as if they were keystrokes

ATTN

246

Attn key

CRSEL

247

CrSel key

EXSEL

248

ExSel key

EREOF

249

Erase EOF key

PLAY

250

Play key

ZOOM

251

Zoom key

NONAME

252

Reserved

PA1

253

PA1 key

OEM_CLEAR

254

Clear key