码迷,mamicode.com
首页 > 其他好文 > 详细

热键虚拟码Virtual-Key Codes

时间:2015-04-30 21:43:51      阅读:411      评论:0      收藏:0      [点我收藏+]

标签:


  1. Virtual-Key Codes
  2. Virtual-Key Codes
  3. The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system. The codes are listed in numeric order.
  4. Constant/value Description
  5. VK_LBUTTON
  6. 0x01
  7. Left mouse button
  8. VK_RBUTTON
  9. 0x02
  10. Right mouse button
  11. VK_CANCEL
  12. 0x03
  13. Control-break processing
  14. VK_MBUTTON
  15. 0x04
  16. Middle mouse button (three-button mouse)
  17. VK_XBUTTON1
  18. 0x05
  19. X1 mouse button
  20. VK_XBUTTON2
  21. 0x06
  22. X2 mouse button
  23. -
  24. 0x07
  25. Undefined
  26. VK_BACK
  27. 0x08
  28. BACKSPACE key
  29. VK_TAB
  30. 0x09
  31. TAB key
  32. -
  33. 0x0A-0B
  34. Reserved
  35. VK_CLEAR
  36. 0x0C
  37. CLEAR key
  38. VK_RETURN
  39. 0x0D
  40. ENTER key
  41. -
  42. 0x0E-0F
  43. Undefined
  44. VK_SHIFT
  45. 0x10
  46. SHIFT key
  47. VK_CONTROL
  48. 0x11
  49. CTRL key
  50. VK_MENU
  51. 0x12
  52. ALT key
  53. VK_PAUSE
  54. 0x13
  55. PAUSE key
  56. VK_CAPITAL
  57. 0x14
  58. CAPS LOCK key
  59. VK_KANA
  60. 0x15
  61. IME Kana mode
  62. VK_HANGUEL
  63. 0x15
  64. IME Hanguel mode (maintained for compatibility; use VK_HANGUL)
  65. VK_HANGUL
  66. 0x15
  67. IME Hangul mode
  68. -
  69. 0x16
  70. Undefined
  71. VK_JUNJA
  72. 0x17
  73. IME Junja mode
  74. VK_FINAL
  75. 0x18
  76. IME final mode
  77. VK_HANJA
  78. 0x19
  79. IME Hanja mode
  80. VK_KANJI
  81. 0x19
  82. IME Kanji mode
  83. -
  84. 0x1A
  85. Undefined
  86. VK_ESCAPE
  87. 0x1B
  88. ESC key
  89. VK_CONVERT
  90. 0x1C
  91. IME convert
  92. VK_NONCONVERT
  93. 0x1D
  94. IME nonconvert
  95. VK_ACCEPT
  96. 0x1E
  97. IME accept
  98. VK_MODECHANGE
  99. 0x1F
  100. IME mode change request
  101. VK_SPACE
  102. 0x20
  103. SPACEBAR
  104. VK_PRIOR
  105. 0x21
  106. PAGE UP key
  107. VK_NEXT
  108. 0x22
  109. PAGE DOWN key
  110. VK_END
  111. 0x23
  112. END key
  113. VK_HOME
  114. 0x24
  115. HOME key
  116. VK_LEFT
  117. 0x25
  118. LEFT ARROW key
  119. VK_UP
  120. 0x26
  121. UP ARROW key
  122. VK_RIGHT
  123. 0x27
  124. RIGHT ARROW key
  125. VK_DOWN
  126. 0x28
  127. DOWN ARROW key
  128. VK_SELECT
  129. 0x29
  130. SELECT key
  131. VK_PRINT
  132. 0x2A
  133. PRINT key
  134. VK_EXECUTE
  135. 0x2B
  136. EXECUTE key
  137. VK_SNAPSHOT
  138. 0x2C
  139. PRINT SCREEN key
  140. VK_INSERT
  141. 0x2D
  142. INS key
  143. VK_DELETE
  144. 0x2E
  145. DEL key
  146. VK_HELP
  147. 0x2F
  148. HELP key
  149. 0x30
  150. 0 key
  151. 0x31
  152. 1 key
  153. 0x32
  154. 2 key
  155. 0x33
  156. 3 key
  157. 0x34
  158. 4 key
  159. 0x35
  160. 5 key
  161. 0x36
  162. 6 key
  163. 0x37
  164. 7 key
  165. 0x38
  166. 8 key
  167. 0x39
  168. 9 key
  169. -
  170. 0x3A-40
  171. Undefined
  172. 0x41
  173. A key
  174. 0x42
  175. B key
  176. 0x43
  177. C key
  178. 0x44
  179. D key
  180. 0x45
  181. E key
  182. 0x46
  183. F key
  184. 0x47
  185. G key
  186. 0x48
  187. H key
  188. 0x49
  189. I key
  190. 0x4A
  191. J key
  192. 0x4B
  193. K key
  194. 0x4C
  195. L key
  196. 0x4D
  197. M key
  198. 0x4E
  199. N key
  200. 0x4F
  201. O key
  202. 0x50
  203. P key
  204. 0x51
  205. Q key
  206. 0x52
  207. R key
  208. 0x53
  209. S key
  210. 0x54
  211. T key
  212. 0x55
  213. U key
  214. 0x56
  215. V key
  216. 0x57
  217. W key
  218. 0x58
  219. X key
  220. 0x59
  221. Y key
  222. 0x5A
  223. Z key
  224. VK_LWIN
  225. 0x5B
  226. Left Windows key (Natural keyboard)
  227. VK_RWIN
  228. 0x5C
  229. Right Windows key (Natural keyboard)
  230. VK_APPS
  231. 0x5D
  232. Applications key (Natural keyboard)
  233. -
  234. 0x5E
  235. Reserved
  236. VK_SLEEP
  237. 0x5F
  238. Computer Sleep key
  239. VK_NUMPAD0
  240. 0x60
  241. Numeric keypad 0 key
  242. VK_NUMPAD1
  243. 0x61
  244. Numeric keypad 1 key
  245. VK_NUMPAD2
  246. 0x62
  247. Numeric keypad 2 key
  248. VK_NUMPAD3
  249. 0x63
  250. Numeric keypad 3 key
  251. VK_NUMPAD4
  252. 0x64
  253. Numeric keypad 4 key
  254. VK_NUMPAD5
  255. 0x65
  256. Numeric keypad 5 key
  257. VK_NUMPAD6
  258. 0x66
  259. Numeric keypad 6 key
  260. VK_NUMPAD7
  261. 0x67
  262. Numeric keypad 7 key
  263. VK_NUMPAD8
  264. 0x68
  265. Numeric keypad 8 key
  266. VK_NUMPAD9
  267. 0x69
  268. Numeric keypad 9 key
  269. VK_MULTIPLY
  270. 0x6A
  271. Multiply key
  272. VK_ADD
  273. 0x6B
  274. Add key
  275. VK_SEPARATOR
  276. 0x6C
  277. Separator key
  278. VK_SUBTRACT
  279. 0x6D
  280. Subtract key
  281. VK_DECIMAL
  282. 0x6E
  283. Decimal key
  284. VK_DIVIDE
  285. 0x6F
  286. Divide key
  287. VK_F1
  288. 0x70
  289. F1 key
  290. VK_F2
  291. 0x71
  292. F2 key
  293. VK_F3
  294. 0x72
  295. F3 key
  296. VK_F4
  297. 0x73
  298. F4 key
  299. VK_F5
  300. 0x74
  301. F5 key
  302. VK_F6
  303. 0x75
  304. F6 key
  305. VK_F7
  306. 0x76
  307. F7 key
  308. VK_F8
  309. 0x77
  310. F8 key
  311. VK_F9
  312. 0x78
  313. F9 key
  314. VK_F10
  315. 0x79
  316. F10 key
  317. VK_F11
  318. 0x7A
  319. F11 key
  320. VK_F12
  321. 0x7B
  322. F12 key
  323. VK_F13
  324. 0x7C
  325. F13 key
  326. VK_F14
  327. 0x7D
  328. F14 key
  329. VK_F15
  330. 0x7E
  331. F15 key
  332. VK_F16
  333. 0x7F
  334. F16 key
  335. VK_F17
  336. 0x80
  337. F17 key
  338. VK_F18
  339. 0x81
  340. F18 key
  341. VK_F19
  342. 0x82
  343. F19 key
  344. VK_F20
  345. 0x83
  346. F20 key
  347. VK_F21
  348. 0x84
  349. F21 key
  350. VK_F22
  351. 0x85
  352. F22 key
  353. VK_F23
  354. 0x86
  355. F23 key
  356. VK_F24
  357. 0x87
  358. F24 key
  359. -
  360. 0x88-8F
  361. Unassigned
  362. VK_NUMLOCK
  363. 0x90
  364. NUM LOCK key
  365. VK_SCROLL
  366. 0x91
  367. SCROLL LOCK key
  368. 0x92-96
  369. OEM specific
  370. -
  371. 0x97-9F
  372. Unassigned
  373. VK_LSHIFT
  374. 0xA0
  375. Left SHIFT key
  376. VK_RSHIFT
  377. 0xA1
  378. Right SHIFT key
  379. VK_LCONTROL
  380. 0xA2
  381. Left CONTROL key
  382. VK_RCONTROL
  383. 0xA3
  384. Right CONTROL key
  385. VK_LMENU
  386. 0xA4
  387. Left MENU key
  388. VK_RMENU
  389. 0xA5
  390. Right MENU key
  391. VK_BROWSER_BACK
  392. 0xA6
  393. Browser Back key
  394. VK_BROWSER_FORWARD
  395. 0xA7
  396. Browser Forward key
  397. VK_BROWSER_REFRESH
  398. 0xA8
  399. Browser Refresh key
  400. VK_BROWSER_STOP
  401. 0xA9
  402. Browser Stop key
  403. VK_BROWSER_SEARCH
  404. 0xAA
  405. Browser Search key
  406. VK_BROWSER_FAVORITES
  407. 0xAB
  408. Browser Favorites key
  409. VK_BROWSER_HOME
  410. 0xAC
  411. Browser Start and Home key
  412. VK_VOLUME_MUTE
  413. 0xAD
  414. Volume Mute key
  415. VK_VOLUME_DOWN
  416. 0xAE
  417. Volume Down key
  418. VK_VOLUME_UP
  419. 0xAF
  420. Volume Up key
  421. VK_MEDIA_NEXT_TRACK
  422. 0xB0
  423. Next Track key
  424. VK_MEDIA_PREV_TRACK
  425. 0xB1
  426. Previous Track key
  427. VK_MEDIA_STOP
  428. 0xB2
  429. Stop Media key
  430. VK_MEDIA_PLAY_PAUSE
  431. 0xB3
  432. Play/Pause Media key
  433. VK_LAUNCH_MAIL
  434. 0xB4
  435. Start Mail key
  436. VK_LAUNCH_MEDIA_SELECT
  437. 0xB5
  438. Select Media key
  439. VK_LAUNCH_APP1
  440. 0xB6
  441. Start Application 1 key
  442. VK_LAUNCH_APP2
  443. 0xB7
  444. Start Application 2 key
  445. -
  446. 0xB8-B9
  447. Reserved
  448. VK_OEM_1
  449. 0xBA
  450. Used for miscellaneous characters; it can vary by keyboard.
  451. For the US standard keyboard, the ‘;:‘ key
  452. VK_OEM_PLUS
  453. 0xBB
  454. For any country/region, the ‘+‘ key
  455. VK_OEM_COMMA
  456. 0xBC
  457. For any country/region, the ‘,‘ key
  458. VK_OEM_MINUS
  459. 0xBD
  460. For any country/region, the ‘-‘ key
  461. VK_OEM_PERIOD
  462. 0xBE
  463. For any country/region, the ‘.‘ key
  464. VK_OEM_2
  465. 0xBF
  466. Used for miscellaneous characters; it can vary by keyboard.
  467. For the US standard keyboard, the ‘/?‘ key
  468. VK_OEM_3
  469. 0xC0
  470. Used for miscellaneous characters; it can vary by keyboard.
  471. For the US standard keyboard, the ‘`~‘ key
  472. -
  473. 0xC1-D7
  474. Reserved
  475. -
  476. 0xD8-DA
  477. Unassigned
  478. VK_OEM_4
  479. 0xDB
  480. Used for miscellaneous characters; it can vary by keyboard.
  481. For the US standard keyboard, the ‘[{‘ key
  482. VK_OEM_5
  483. 0xDC
  484. Used for miscellaneous characters; it can vary by keyboard.
  485. For the US standard keyboard, the ‘\|‘ key
  486. VK_OEM_6
  487. 0xDD
  488. Used for miscellaneous characters; it can vary by keyboard.
  489. For the US standard keyboard, the ‘]}‘ key
  490. VK_OEM_7
  491. 0xDE
  492. Used for miscellaneous characters; it can vary by keyboard.
  493. For the US standard keyboard, the ‘single-quote/double-quote‘ key
  494. VK_OEM_8
  495. 0xDF
  496. Used for miscellaneous characters; it can vary by keyboard.
  497. -
  498. 0xE0
  499. Reserved
  500. 0xE1
  501. OEM specific
  502. VK_OEM_102
  503. 0xE2
  504. Either the angle bracket key or the backslash key on the RT 102-key keyboard
  505. 0xE3-E4
  506. OEM specific
  507. VK_PROCESSKEY
  508. 0xE5
  509. IME PROCESS key
  510. 0xE6
  511. OEM specific
  512. VK_PACKET
  513. 0xE7
  514. Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP
  515. -
  516. 0xE8
  517. Unassigned
  518. 0xE9-F5
  519. OEM specific
  520. VK_ATTN
  521. 0xF6
  522. Attn key
  523. VK_CRSEL
  524. 0xF7
  525. CrSel key
  526. VK_EXSEL
  527. 0xF8
  528. ExSel key
  529. VK_EREOF
  530. 0xF9
  531. Erase EOF key
  532. VK_PLAY
  533. 0xFA
  534. Play key
  535. VK_ZOOM
  536. 0xFB
  537. Zoom key
  538. VK_NONAME
  539. 0xFC
  540. Reserved
  541. VK_PA1
  542. 0xFD
  543. PA1 key
  544. VK_OEM_CLEAR
  545. 0xFE
  546. Clear key
  547. Requirements
  548. Minimum supported client
  549. Windows 2000 Professional [desktop apps only]
  550. Minimum supported server
  551. Windows 2000 Server [desktop apps only]
  552. Header
  553. Winuser.h
  554. 个人信息中心 | 法律信息 | MSDN Flash 中心 | 联系我们
  555. ? 2014 Microsoft. 版权所有。 保留所有权利 | 商标 | 隐私权声明





热键虚拟码Virtual-Key Codes

标签:

原文地址:http://www.cnblogs.com/hungryvampire/p/4469924.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!