Windows仮想キーコード一覧(Win32API)

Win32APIの仮想キーコード一覧を使う機会があったのでメモしておく。

数値 定数名 キー
0 (00H)    
1 (01H) VK_LBUTTON マウス左ボタン
2 (02H) VK_RBUTTON マウス右ボタン
3 (03H) VK_CANCEL  
4 (04H) VK_MBUTTON マウス中央ボタン
5 (05H) VK_XBUTTON1  
6 (06H) VK_XBUTTON2  
7 (07H)    
8 (08H) VK_BACK BackSpace
9 (09H) VK_TAB TABキー
10 (0AH)    
11 (0BH)    
12 (0CH) VK_CLEAR  
13 (0DH) VK_RETURN リターン(Enter)
14 (0EH)    
15 (0FH)    
16 (10H) VK_SHIFT Shift
17 (11H) VK_CONTROL Ctrl
18 (12H) VK_MENU Alt(GRPH)
19 (13H) VK_PAUSE Pause
20 (14H) VK_CAPITAL CapsLock
21 (15H) VK_KANAVK_HANGUL カナ
22 (16H)    
23 (17H) VK_JUNJA  
24 (18H) VK_FINAL  
25 (19H) VK_HANJAVK_KANJI 漢字
26 (1AH)    
27 (1BH) VK_ESCAPE ESC
28 (1CH) VK_CONVERT 変換
29 (1DH) VK_NONCONVERT 無変換
30 (1EH) VK_ACCEPT  
31 (1FH) VK_MODECHANGE  
32 (20H) VK_SPACE スペースバー
33 (21H) VK_PRIOR PageUp(RollDown)
34 (22H) VK_NEXT PageDown(RollUp)
35 (23H) VK_END End(Help)
36 (24H) VK_HOME Home
37 (25H) VK_LEFT
38 (26H) VK_UP
39 (27H) VK_RIGHT
40 (28H) VK_DOWN
41 (29H) VK_SELECT  
42 (2AH) VK_PRINT  
43 (2BH) VK_EXECUTE  
44 (2CH) VK_SNAPSHOT PrintScreen(COPY)
45 (2DH) VK_INSERT Insert
46 (2EH) VK_DELETE Delete
47 (2FH) VK_HELP  
48 (30H) ”0” 0
49 (31H) ”1” 1
50 (32H) ”2” 2
51 (33H) ”3” 3
52 (34H) ”4” 4
53 (35H) ”5” 5
54 (36H) ”6” 6
55 (37H) ”7” 7
56 (38H) ”8” 8
57 (39H) ”9” 9
58 (3AH)    
59 (3BH)    
60 (3CH)    
61 (3DH)    
62 (3EH)    
63 (3FH)    
64 (40H)    
65 (41H) ”A” A
66 (42H) ”B” B
67 (43H) ”C” C
68 (44H) ”D” D
69 (45H) ”E” E
70 (46H) ”F” F
71 (47H) ”G” G
72 (48H) ”H” H
73 (49H) ”I” I
74 (4AH) ”J” J
75 (4BH) ”K” K
76 (4CH) ”L” L
77 (4DH) ”M” M
78 (4EH) ”N” N
79 (4FH) ”O” O
80 (50H) ”P” P
81 (51H) ”Q” Q
82 (52H) ”R” R
83 (53H) ”S” S
84 (54H) ”T” T
85 (55H) ”U” U
86 (56H) ”V” V
87 (57H) ”W” W
88 (58H) ”X” X
89 (59H) ”Y” Y
90 (5AH) ”Z” Z
91 (5BH) VK_LWIN 左Windowsキー
92 (5CH) VK_RWIN 右Windowsキー
93 (5DH) VK_APPS アプリケーションキー
94 (5EH)    
95 (5FH) VK_SLEEP  
96 (60H) VK_NUMPAD0 Num 0
97 (61H) VK_NUMPAD1 Num 1
98 (62H) VK_NUMPAD2 Num 2
99 (63H) VK_NUMPAD3 Num 3
100 (64H) VK_NUMPAD4 Num 4
101 (65H) VK_NUMPAD5 Num 5
102 (66H) VK_NUMPAD6 Num 6
103 (67H) VK_NUMPAD7 Num 7
104 (68H) VK_NUMPAD8 Num 8
105 (69H) VK_NUMPAD9 Num 9
106 (6AH) VK_MULTIPLY Num *
107 (6BH) VK_ADD Num +
108 (6CH) VK_SEPARATOR Num ,
109 (6DH) VK_SUBTRACT Num –
110 (6EH) VK_DECIMAL Num .
111 (6FH) VK_DIVIDE Num /
112 (70H) VK_F1 F1
113 (71H) VK_F2 F2
114 (72H) VK_F3 F3
115 (73H) VK_F4 F4
116 (74H) VK_F5 F5
117 (75H) VK_F6 F6
118 (76H) VK_F7 F7
119 (77H) VK_F8 F8
120 (78H) VK_F9 F9
121 (79H) VK_F10 F10
122 (7AH) VK_F11 F11
123 (7BH) VK_F12 F12
124 (7CH) VK_F13 F13
125 (7DH) VK_F14 F14
126 (7EH) VK_F15 F15
127 (7FH) VK_F16 F16
128 (80H) VK_F17 F17
129 (81H) VK_F18 F18
130 (82H) VK_F19 F19
131 (83H) VK_F20 F20
132 (84H) VK_F21 F21
133 (85H) VK_F22 F22
134 (86H) VK_F23 F23
135 (87H) VK_F24 F24
136 (88H)    
137 (89H)    
138 (8AH)    
139 (8BH)    
140 (8CH)    
141 (8DH)    
142 (8EH)    
143 (8FH)    
144 (90H) VK_NUMLOCK NumLock
145 (91H) VK_SCROLL ScrollLock
146 (92H)   Num =
147 (93H)    
148 (94H)    
149 (95H)    
150 (96H)    
151 (97H)    
152 (98H)    
153 (99H)    
154 (9AH)    
155 (9BH)    
156 (9CH)    
157 (9DH)    
158 (9EH)    
159 (9FH)    
160 (A0H) VK_LSHIFT 左Shift
161 (A1H) VK_RSHIFT 右Shift
162 (A2H) VK_LCONTROL 左Ctrl
163 (A3H) VK_RCONTROL 右Ctrl
164 (A4H) VK_LMENU 左Alt
165 (A5H) VK_RMENU 右Alt
166 (A6H) VK_BROWSER_BACK  
167 (A7H) VK_BROWSER_FORWARD  
168 (A8H) VK_BROWSER_REFRESH  
169 (A9H) VK_BROWSER_STOP  
170 (AAH) VK_BROWSER_SEARCH  
171 (ABH) VK_BROWSER_FAVORITES  
172 (ACH) VK_BROWSER_HOME  
173 (ADH) VK_VOLUME_MUTE  
174 (AEH) VK_VOLUME_DOWN  
175 (AFH) VK_VOLUME_UP  
176 (B0H) VK_MEDIA_NEXT_TRACK  
177 (B1H) VK_MEDIA_PREV_TRACK  
178 (B2H) VK_MEDIA_STOP  
179 (B3H) VK_MEDIA_PLAY_PAUSE  
180 (B4H) VK_LAUNCH_MAIL  
181 (B5H) VK_LAUNCH_MEDIA_SELECT  
182 (B6H) VK_LAUNCH_APP1  
183 (B7H) VK_LAUNCH_APP2  
184 (B8H)    
185 (B9H)    
186 (BAH) VK_OEM_1 :
187 (BBH) VK_OEM_PLUS ;
188 (BCH) VK_OEM_COMMA ,
189 (BDH) VK_OEM_MINUS
190 (BEH) VK_OEM_PERIOD .
191 (BFH) VK_OEM_2 /
192 (C0H) VK_OEM_3 @
193 (C1H)    
194 (C2H)    
195 (C3H)    
196 (C4H)    
197 (C5H)    
198 (C6H)    
199 (C7H)    
200 (C8H)    
201 (C9H)    
202 (CAH)    
203 (CBH)    
204 (CCH)    
205 (CDH)    
206 (CEH)    
207 (CFH)    
208 (D0H)    
209 (D1H)    
210 (D2H)    
211 (D3H)    
212 (D4H)    
213 (D5H)    
214 (D6H)    
215 (D7H)    
216 (D8H)    
217 (D9H)    
218 (DAH)    
219 (DBH) VK_OEM_4 [
220 (DCH) VK_OEM_5 \\
221 (DDH) VK_OEM_6 ]
222 (DEH) VK_OEM_7 ^
223 (DFH) VK_OEM_8 _
224 (E0H)    
225 (E1H) VK_OEM_AX  
226 (E2H) VK_OEM_102 _
227 (E3H) VK_ICO_HELP  
228 (E4H) VK_ICO_00  
229 (E5H) VK_PROCESSKEY  
230 (E6H) VK_ICO_CLEAR  
231 (E7H) VK_PACKET  
232 (E8H)    
233 (E9H) VK_OEM_RESET  
234 (EAH) VK_OEM_JUMP  
235 (EBH) VK_OEM_PA1  
236 (ECH) VK_OEM_PA2  
237 (EDH) VK_OEM_PA3  
238 (EEH) VK_OEM_WSCTRL  
239 (EFH) VK_OEM_CUSEL  
240 (F0H) VK_OEM_ATTN  
241 (F1H) VK_OEM_FINISH  
242 (F2H) VK_OEM_COPY  
243 (F3H) VK_OEM_AUTO  
244 (F4H) VK_OEM_ENLW  
245 (F5H) VK_OEM_BACKTAB  
246 (F6H) VK_ATTN  
247 (F7H) VK_CRSEL  
248 (F8H) VK_EXSEL  
249 (F9H) VK_EREOF  
250 (FAH) VK_PLAY  
251 (FBH) VK_ZOOM  
252 (FCH) VK_NONAME  
253 (FDH) VK_PA1  
254 (FEH) VK_OEM_CLEAR  
255 (FFH)    
ブックマークする パーマリンク.

コメントは受け付けていません。