1、0 00 Reserved (no event indicated)9 N/A 1 01 Keyboard ErrorRollOver9 N/A 2 02 Keyboard POSTFail9 N/A 3 03 Keyboard ErrorUndefined9 N/A 4 04 Keyboard a and A4 31 5 05 Keyboard b and B 50 6 06 Keyboard c and C4 48 7 07 Keyboard d and D 33 8 08 Keyboard e and E 19 9 09 Keyboard f and F 34 10 0A Keyboar
2、d g and G 35 11 0B Keyboard h and H 36 12 0C Keyboard i and I 24 13 0D Keyboard j and J 37 14 0E Keyboard k and K 38 15 0F Keyboard l and L 39 16 10 Keyboard m and M4 52 17 11 Keyboard n and N 51 18 12 Keyboard o and O4 25 19 13 Keyboard p and P4 26 20 14 Keyboard q and Q4 17 21 15 Keyboard r and R
3、20 22 16 Keyboard s and S4 32 23 17 Keyboard t and T 21 24 18 Keyboard u and U 23 25 19 Keyboard v and V 49 26 1A Keyboard w and W4 18 27 1B Keyboard x and X4 47 28 1C Keyboard y and Y4 22 29 1D Keyboard z and Z4 46 30 1E Keyboard 1 and !4 2 31 1F Keyboard 2 and 4 3 32 20 Keyboard 3 and #4 4 33 21 K
4、eyboard 4 and $4 5 34 22 Keyboard 5 and %4 6 35 23 Keyboard 6 and 4 7 36 24 Keyboard 7 and and :4 40 52 34 Keyboard and “4 41 53 35 Keyboard Grave Accent and Tilde4 1 54 36 Keyboard, and 4 54 56 38 Keyboard / and ?4 55 57 39 Keyboard Caps Lock11 30 58 3A Keyboard F1 112 59 3B Keyboard F2 113 60 3C K
5、eyboard F3 114 61 3D Keyboard F4 115 62 3E Keyboard F5 116 63 3F Keyboard F6 117 64 40 Keyboard F7 118 65 41 Keyboard F8 119 66 42 Keyboard F9 120 67 43 Keyboard F10 121 68 44 Keyboard F11 122 69 45 Keyboard F12 123 70 46 Keyboard PrintScreen1 124 71 47 Keyboard Scroll Lock11 125 72 48 Keyboard Paus
6、e1 126 73 49 Keyboard Insert1 75 74 4A Keyboard Home1 80 75 4B Keyboard PageUp1 85 76 4C Keyboard Delete Forward1;14 76 77 4D Keyboard End1 81 78 4E Keyboard PageDown1 86 79 4F Keyboard RightArrow1 89 80 50 Keyboard LeftArrow1 79 81 51 Keyboard DownArrow1 84 82 52 Keyboard UpArrow1 83 83 53 Keypad N
7、um Lock and Clear11 90 84 54 Keypad /1 95 85 55 Keypad * 100 86 56 Keypad - 105 87 57 Keypad + 106 88 58 Keypad ENTER5 108 89 59 Keypad 1 and End 93 90 5A Keypad 2 and Down Arrow 98 91 5B Keypad 3 and PageDn 103 92 5C Keypad 4 and Left Arrow 92 93 5D Keypad 5 97 94 5E Keypad 6 and Right Arrow 102 95
8、 5F Keypad 7 and Home 91 96 60 Keypad 8 and Up Arrow 96 97 61 Keypad 9 and PageUp 101 98 62 Keypad 0 and Insert 99 99 63 Keypad . and Delete 104 100 64 Keyboard Non-US and |3;6 45 101 65 Keyboard Application10 129 102 66 Keyboard Power9 103 67 Keypad = 104 68 Keyboard F13 105 69 Keyboard F14 106 6A
9、Keyboard F15 107 6B Keyboard F16108 6C Keyboard F17109 6D Keyboard F18110 6E Keyboard F19111 6F Keyboard F20112 70 Keyboard F21113 71 Keyboard F22114 72 Keyboard F23115 73 Keyboard F24116 74 Keyboard Execute 117 75 Keyboard Help 118 76 Keyboard Menu 119 77 Keyboard Select 120 78 Keyboard Stop 121 79
10、 Keyboard Again 122 7A Keyboard Undo 123 7B Keyboard Cut 124 7C Keyboard Copy 125 7D Keyboard Paste 126 7E Keyboard Find 127 7F Keyboard Mute 128 80 Keyboard Volume Up 129 81 Keyboard Volume Down 130 82 Keyboard Locking Caps Lock12 131 83 Keyboard Locking Num Lock12 132 84 Keyboard Locking Scroll Lo
11、ck12 133 85 Keypad Comma27 107134 86 Keypad Equal Sign29135 87 Keyboard International115,28 56136 88 Keyboard International216137 89 Keyboard International317138 8A Keyboard International418139 8B Keyboard International519140 8C Keyboard International620141 8D Keyboard International721142 8E Keyboar
12、d International822143 8F Keyboard International922144 90 Keyboard LANG125145 91 Keyboard LANG226146 92 Keyboard LANG330147 93 Keyboard LANG431148 94 Keyboard LANG532149 95 Keyboard LANG68150 96 Keyboard LANG78151 97 Keyboard LANG88152 98 Keyboard LANG98153 99 Keyboard Alternate Erase7154 9A Keyboard
13、 SysReq/Attention1155 9B Keyboard Cancel156 9C Keyboard Clear157 9D Keyboard Prior158 9E Keyboard Return159 9F Keyboard Separator160 A0 Keyboard Out161 A1 Keyboard Oper162 A2 Keyboard Clear/Again163 A3 Keyboard CrSel/Props164 A4 Keyboard ExSel165-175 A5-CF Reserved176 B0 Keypad 00177 B1 Keypad 00017
14、8 B2 Thousands Separator 33179 B3 Decimal Separator 33180 B4 Currency Unit 34181 B5 Currency Sub-unit 34182 B6 Keypad (183 B7 Keypad )184 B8 Keypad 185 B9 Keypad 186 BA Keypad Tab187 BB Keypad Backspace188 BC Keypad A189 BD Keypad B190 BE Keypad C191 BF Keypad D192 C0 Keypad E193 C1 Keypad F194 C2 K
15、eypad XOR195 C3 Keypad 196 C4 Keypad %197 C5 Keypad 199 C7 Keypad 23 127 104228 E4 Keyboard RightControl 64 229 E5 Keyboard RightShift 57 230 E6 Keyboard RightAlt 62 231 E7 Keyboard Right GUI10;24 128 104鼠标键盘虚拟键值#define VK_LBUTTON 0x01 鼠标左键#define VK_RBUTTON 0x02 鼠标右键#define VK_CANCEL 0x03 Control-B
16、reak 处理#define VK_MBUTTON 0x04 鼠标中间键#define VK_BACK 0x08 Backspace 键#define VK_TAB 0x09 Tab 键#define VK_CLEAR 0x0C Clear 键#define VK_RETURN 0x0D Enter 键#define VK_SHIFT 0x10 Shift 键#define VK_CONTROL 0x11 Ctrl 键#define VK_MENU 0x12 Alt 键#define VK_PAUSE 0x13 Pause 键 #define VK_CAPITAL 0x14 Caps lock
17、 键#define VK_ESCAPE 0x1B Escape 键#define VK_SPACE 0x20 空格键#define VK_PRIOR 0x21 Page up 键#define VK_NEXT 0x22 Page down 键#define VK_END 0x23 End 键#define VK_HOME 0x24 Home 键#define VK_LEFT 0x25 左箭头键#define VK_UP 0x26 上箭头键#define VK_RIGHT 0x27 右箭头键#define VK_DOWN 0x28 下箭头键#define VK_SELECT 0x29 Selec
18、t 键#define VK_EXECUTE 0x2B Execute 键#define VK_SNAPSHOT 0x2C Print screen 键#define VK_INSERT 0x2D Insert 键#define VK_DELETE 0x2E Delete 键#define VK_HELP 0x2F Help 键#define VK_NUMPAD0 0x60 数字小键盘上的 0#define VK_NUMPAD1 0x61 数字小键盘上的 1#define VK_NUMPAD2 0x62 数字小键盘上的 2#define VK_NUMPAD3 0x63 数字小键盘上的 3#def
19、ine VK_NUMPAD4 0x64 数字小键盘上的 4#define VK_NUMPAD5 0x65 数字小键盘上的 5#define VK_NUMPAD6 0x66 数字小键盘上的 6#define VK_NUMPAD7 0x67 数字小键盘上的 7#define VK_NUMPAD8 0x68 数字小键盘上的 8#define VK_NUMPAD9 0x69 数字小键盘上的 9#define VK_MULTIPLY 0x6A 数字小键盘上的*#define VK_ADD 0x6B 数字小键盘上的+#define VK_SEPARATOR 0x6C 分隔符键#define VK_SUBT
20、RACT 0x6D 数字小键盘上的-#define VK_DECIMAL 0x6E 数字小键盘上的.#define VK_DIVIDE 0x6F 数字小键盘上的/#define VK_F1 0x70 F1 键#define VK_F2 0x71 F2 键#define VK_F3 0x72 F3 键#define VK_F4 0x73 F4 键#define VK_F5 0x74 F5 键#define VK_F6 0x75 F6 键#define VK_F7 0x76 F7 键#define VK_F8 0x77 F8 键#define VK_F9 0x78 F9 键#define VK_F
21、10 0x79 F10 键#define VK_F11 0x7A F11 键#define VK_F12 0x7B F12 键#define VK_0 . VK_9 0x30 - 0x39 09 键#define VK_A . VK_Z 0x41 - 0x5A AZ 键#define VK_NUMLOCK 0x90 Numlock 键#define VK_SCROLL 0x91 Scroll Lock 键#define VK_LSHIFT 0xA0 左 Shift 键#define VK_RSHIFT 0xA1 右 Shift 键#define VK_LCONTROL 0xA2 左 Ctrl 键 #define VK_RCONTROL 0xA3 右 Ctrl 键#define VK_LMENU 0xA4 左 Alt 键#define VK_RMENU 0xA5 右 Alt 键