承接Qt/C++软件开发项目,高质量交付,灵活沟通,长期维护支持。需求所寻,技术正适,共创完美,欢迎私信联系!
虚拟键码 | 十六进制值 | 十进制值 | 功能 |
---|---|---|---|
VK_LBUTTON | 0x01 | 1 | 左鼠标键 |
VK_RBUTTON | 0x02 | 2 | 右鼠标键 |
VK_CANCEL | 0x03 | 3 | 取消键 |
VK_MBUTTON | 0x04 | 4 | 中鼠标键 |
#if(_WIN32_WINNT >= 0x0500) | |||
VK_XBUTTON1 | 0x05 | 5 | 额外鼠标按钮1 |
VK_XBUTTON2 | 0x06 | 6 | 额外鼠标按钮2 |
#endif | |||
Reserved | 0x07 | 7 | 保留 |
VK_BACK | 0x08 | 8 | 退格键 |
VK_TAB | 0x09 | 9 | Tab键 |
Reserved | 0x0A-0x0B | 12-13 | 保留 |
VK_CLEAR | 0x0C | 14 | 清除键 |
VK_RETURN | 0x0D | 15 | 回车键 |
Unassigned | 0x0E-0x0F | 16-17 | 未分配 |
VK_SHIFT | 0x10 | 20 | Shift键 |
VK_CONTROL | 0x11 | 21 | Ctrl键 |
VK_MENU | 0x12 | 22 | Alt键 |
VK_PAUSE | 0x13 | 23 | 暂停/中断键 |
VK_CAPITAL | 0x14 | 24 | 大写锁定键 |
VK_KANA | 0x15 | 25 | Kana键 |
VK_HANGEUL | 0x15 | 25 | Hangeul键 (旧名称) |
VK_HANGUL | 0x15 | 25 | Hangul键 |
Unassigned | 0x16 | 26 | 未分配 |
VK_JUNJA | 0x17 | 27 | Junja键 |
VK_FINAL | 0x18 | 30 | Final键 |
VK_HANJA | 0x19 | 31 | Hanja键 |
VK_KANJI | 0x19 | 31 | Kanji键 |
Unassigned | 0x1A | 32 | 未分配 |
VK_ESCAPE | 0x1B | 33 | Escape键 |
VK_CONVERT | 0x1C | 34 | IME Convert键 |
VK_NONCONVERT | 0x1D | 35 | IME Non-Convert键 |
VK_ACCEPT | 0x1E | 36 | IME Accept键 |
VK_MODECHANGE | 0x1F | 37 | IME Mode Change键 |
VK_SPACE | 0x20 | 40 | 空格键 |
VK_PRIOR | 0x21 | 41 | Page Up键 |
VK_NEXT | 0x22 | 42 | Page Down键 |
VK_END | 0x23 | 43 | End键 |
VK_HOME | 0x24 | 44 | Home键 |
VK_LEFT | 0x25 | 45 | 左箭头键 |
VK_UP | 0x26 | 46 | 上箭头键 |
VK_RIGHT | 0x27 | 47 | 右箭头键 |
VK_DOWN | 0x28 | 50 | 下箭头键 |
VK_SELECT | 0x29 | 51 | 选择键 |
VK_PRINT | 0x2A | 52 | Print键 |
VK_EXECUTE | 0x2B | 53 | 执行键 |
VK_SNAPSHOT | 0x2C | 54 | Print Screen键 |
VK_INSERT | 0x2D | 55 | 插入键 |
VK_DELETE | 0x2E | 56 | 删除键 |
VK_HELP | 0x2F | 57 | 帮助键 |
VK_0 | 0x30 | 60 | 0 键 |
VK_1 | 0x31 | 61 | 1 键 |
VK_2 | 0x32 | 62 | 2 键 |
VK_3 | 0x33 | 63 | 3 键 |
VK_4 | 0x34 | 64 | 4 键 |
VK_5 | 0x35 | 65 | 5 键 |
VK_6 | 0x36 | 66 | 6 键 |
VK_7 | 0x37 | 67 | 7 键 |
VK_8 | 0x38 | 70 | 8 键 |
VK_9 | 0x39 | 71 | 9 键 |
Unassigned | 0x3A-0x40 | 72-100 | 未分配 |
VK_A - VK_Z | 0x41 | 101 | A 键 |
VK_B | 0x42 | 102 | B 键 |
VK_C | 0x43 | 103 | C 键 |
VK_D | 0x44 | 104 | D 键 |
VK_E | 0x45 | 105 | E 键 |
VK_F | 0x46 | 106 | F 键 |
VK_G | 0x47 | 107 | G 键 |
VK_H | 0x48 | 110 | H 键 |
VK_I | 0x49 | 111 | I 键 |
VK_J | 0x4A | 112 | J 键 |
VK_K | 0x4B | 113 | K 键 |
VK_L | 0x4C | 114 | L 键 |
VK_M | 0x4D | 115 | M 键 |
VK_N | 0x4E | 116 | N 键 |
VK_O | 0x4F | 117 | O 键 |
VK_P | 0x50 | 120 | P 键 |
VK_Q | 0x51 | 121 | Q 键 |
VK_R | 0x52 | 122 | R 键 |
VK_S | 0x53 | 123 | S 键 |
VK_T | 0x54 | 124 | T 键 |
VK_U | 0x55 | 125 | U 键 |
VK_V | 0x56 | 126 | V 键 |
VK_W | 0x57 | 127 | W 键 |
VK_X | 0x58 | 130 | X 键 |
VK_Y | 0x59 | 131 | Y 键 |
VK_Z | 0x5A | 132 | Z 键 |
VK_LWIN | 0x5B | 133 | 左Windows键 |
VK_RWIN | 0x5C | 134 | 右Windows键 |
VK_APPS | 0x5D | 135 | 应用程序键 |
Reserved | 0x5E | 136 | 保留 |
VK_SLEEP | 0x5F | 137 | 休眠键 |
VK_NUMPAD0 | 0x60 | 140 | 数字键盘0 |
VK_NUMPAD1 | 0x61 | 141 | 数字键盘1 |
VK_NUMPAD2 | 0x62 | 142 | 数字键盘2 |
VK_NUMPAD3 | 0x63 | 143 | 数字键盘3 |
VK_NUMPAD4 | 0x64 | 144 | 数字键盘4 |
VK_NUMPAD5 | 0x65 | 145 | 数字键盘5 |
VK_NUMPAD6 | 0x66 | 146 | 数字键盘6 |
VK_NUMPAD7 | 0x67 | 147 | 数字键盘7 |
VK_NUMPAD8 | 0x68 | 150 | 数字键盘8 |
VK_NUMPAD9 | 0x69 | 151 | 数字键盘9 |
VK_MULTIPLY | 0x6A | 152 | 乘法(*)键 |
VK_ADD | 0x6B | 153 | 加法(+)键 |
VK_SEPARATOR | 0x6C | 154 | 分隔符键 |
VK_SUBTRACT | 0x6D | 155 | 减法(-)键 |
VK_DECIMAL | 0x6E | 156 | 小数(.)键 |
VK_DIVIDE | 0x6F | 157 | 除法(/)键 |
VK_F1 | 0x70 | 160 | F1 功能键 |
VK_F2 | 0x71 | 161 | F2 功能键 |
VK_F3 | 0x72 | 162 | F3 功能键 |
VK_F4 | 0x73 | 163 | F4 功能键 |
VK_F5 | 0x74 | 164 | F5 功能键 |
VK_F6 | 0x75 | 165 | F6 功能键 |
VK_F7 | 0x76 | 166 | F7 功能键 |
VK_F8 | 0x77 | 167 | F8 功能键 |
VK_F9 | 0x78 | 170 | F9 功能键 |
VK_F10 | 0x79 | 171 | F10 功能键 |
VK_F11 | 0x7A | 172 | F11 功能键 |
VK_F12 | 0x7B | 173 | F12 功能键 |
VK_F13 | 0x7C | 174 | F13 功能键 |
VK_F14 | 0x7D | 175 | F14 功能键 |
VK_F15 | 0x7E | 176 | F15 功能键 |
VK_F16 | 0x7F | 177 | F16 功能键 |
VK_F17 | 0x80 | 200 | F17 功能键 |
VK_F18 | 0x81 | 201 | F18 功能键 |
VK_F19 | 0x82 | 202 | F19 功能键 |
VK_F20 | 0x83 | 203 | F20 功能键 |
VK_F21 | 0x84 | 204 | F21 功能键 |
VK_F22 | 0x85 | 205 | F22 功能键 |
VK_F23 | 0x86 | 206 | F23 功能键 |
VK_F24 | 0x87 | 207 | F24 功能键 |
Reserved | 0x88-0x8F | 210-217 | 保留 |
#if(_WIN32_WINNT >= 0x0604) | |||
VK_NAVIGATION_VIEW | 0x88 | 210 | UI导航键 |
VK_NAVIGATION_MENU | 0x89 | 211 | UI导航键 |
VK_NAVIGATION_UP | 0x8A | 212 | UI导航键 |
VK_NAVIGATION_DOWN | 0x8B | 213 | UI导航键 |
VK_NAVIGATION_LEFT | 0x8C | 214 | UI导航键 |
VK_NAVIGATION_RIGHT | 0x8D | 215 | UI导航键 |
VK_NAVIGATION_ACCEPT | 0x8E | 216 | UI导航键 |
VK_NAVIGATION_CANCEL | 0x8F | 217 | UI导航键 |
#endif /* _WIN32_WINNT >= 0x0604 */ | |||
VK_NUMLOCK | 0x90 | 220 | 数字锁定键 |
VK_SCROLL | 0x91 | 221 | 滚动锁定键 |
VK_OEM_NEC_EQUAL | 0x92 | 222 | NEC PC-9800 '=' 键 |
VK_OEM_FJ_JISHO | 0x92 | 222 | 富士通词典键 |
VK_OEM_FJ_MASSHOU | 0x93 | 223 | 富士通取消注册键 |
VK_OEM_FJ_TOUROKU | 0x94 | 224 | 富士通注册键 |
VK_OEM_FJ_LOYA | 0x95 | 225 | 富士通左OYAYUBI键 |
VK_OEM_FJ_ROYA | 0x96 | 226 | 富士通右OYAYUBI键 |
Unassigned | 0x97-0x9F | 227-237 | 未分配 |
VK_LSHIFT | 0xA0 | 240 | 左Shift键 |
VK_RSHIFT | 0xA1 | 241 | 右Shift键 |
VK_LCONTROL | 0xA2 | 242 | 左Ctrl键 |
VK_RCONTROL | 0xA3 | 243 | 右Ctrl键 |
VK_LMENU | 0xA4 | 244 | 左Alt键 |
VK_RMENU | 0xA5 | 245 | 右Alt键 |
#if(_WIN32_WINNT >= 0x0500) | |||
VK_BROWSER_BACK | 0xA6 | 246 | 浏览器后退 |
VK_BROWSER_FORWARD | 0xA7 | 247 | 浏览器前进 |
VK_BROWSER_REFRESH | 0xA8 | 250 | 浏览器刷新 |
VK_BROWSER_STOP | 0xA9 | 251 | 浏览器停止 |
VK_BROWSER_SEARCH | 0xAA | 252 | 浏览器搜索 |
VK_BROWSER_FAVORITES | 0xAB | 253 | 浏览器收藏夹 |
VK_BROWSER_HOME | 0xAC | 254 | 浏览器主页 |
VK_VOLUME_MUTE | 0xAD | 255 | 音量 |
VK_VOLUME_DOWN | 0xAE | 256 | 音量减小 |
VK_VOLUME_UP | 0xAF | 257 | 音量增大 |
VK_MEDIA_NEXT_TRACK | 0xB0 | 260 | 媒体下一曲 |
VK_MEDIA_PREV_TRACK | 0xB1 | 261 | 媒体上一曲 |
VK_MEDIA_STOP | 0xB2 | 262 | 媒体停止 |
VK_MEDIA_PLAY_PAUSE | 0xB3 | 263 | 媒体播放/暂停 |
VK_LAUNCH_MAIL | 0xB4 | 264 | 启动邮件应用 |
VK_LAUNCH_MEDIA_SELECT | 0xB5 | 265 | 启动媒体选择应用 |
VK_LAUNCH_APP1 | 0xB6 | 266 | 启动应用1 |
VK_LAUNCH_APP2 | 0xB7 | 267 | 启动应用2 |
#endif /* _WIN32_WINNT >= 0x0500 */ | |||
Reserved | 0xB8-0xB9 | 270-271 | 保留 |
VK_OEM_1 | 0xBA | 272 | OEM分号 (;:)键 |
VK_OEM_PLUS | 0xBB | 273 | OEM加号 (+)键 |
VK_OEM_COMMA | 0xBC | 274 | OEM逗号 (,)键 |
VK_OEM_MINUS | 0xBD | 275 | OEM减号 (-)键 |
VK_OEM_PERIOD | 0xBE | 276 | OEM句点 (.)键 |
VK_OEM_2 | 0xBF | 277 | OEM斜线 (/?)键 |
VK_OEM_3 | 0xC0 | 300 | OEM重音符 (`~)键 |
Reserved | 0xC1-0xC2 | 301-302 | 保留 |
VK_GAMEPAD_A | 0xC3 | 303 | A 按键 |
VK_GAMEPAD_B | 0xC4 | 304 | B 按键 |
VK_GAMEPAD_X | 0xC5 | 305 | X 按键 |
VK_GAMEPAD_Y | 0xC6 | 306 | Y 按键 |
VK_GAMEPAD_RIGHT_SHOULDER | 0xC7 | 307 | 右肩键 |
VK_GAMEPAD_LEFT_SHOULDER | 0xC8 | 310 | 左肩键 |
VK_GAMEPAD_LEFT_TRIGGER | 0xC9 | 311 | 左扳机键 |
VK_GAMEPAD_RIGHT_TRIGGER | 0xCA | 312 | 左扳机键 |
VK_GAMEPAD_DPAD_UP | 0xCB | 313 | 方向键向上 |
VK_GAMEPAD_DPAD_DOWN | 0xCC | 314 | 方向键向下 |
VK_GAMEPAD_DPAD_LEFT | 0xCD | 315 | 方向键向左 |
VK_GAMEPAD_DPAD_RIGHT | 0xCE | 316 | 方向键向右 |
VK_GAMEPAD_MENU | 0xCF | 317 | 菜单键 |
VK_GAMEPAD_VIEW | 0xD0 | 320 | 视图键 |
VK_GAMEPAD_LEFT_THUMBSTICK_BUTTON | 0xD1 | 321 | 左摇杆按键 |
VK_GAMEPAD_RIGHT_THUMBSTICK_BUTTON | 0xD2 | 322 | 右摇杆按键 |
VK_GAMEPAD_LEFT_THUMBSTICK_UP | 0xD3 | 323 | 左摇杆向上 |
VK_GAMEPAD_LEFT_THUMBSTICK_DOWN | 0xD4 | 324 | 左摇杆向下 |
VK_GAMEPAD_LEFT_THUMBSTICK_RIGHT | 0xD5 | 325 | 左摇杆向右 |
VK_GAMEPAD_LEFT_THUMBSTICK_LEFT | 0xD6 | 326 | 左摇杆向左 |
VK_GAMEPAD_RIGHT_THUMBSTICK_UP | 0xD7 | 327 | 右摇杆向上 |
VK_GAMEPAD_RIGHT_THUMBSTICK_DOWN | 0xD8 | 330 | 右摇杆向下 |
VK_GAMEPAD_RIGHT_THUMBSTICK_RIGHT | 0xD9 | 331 | 右摇杆向右 |
VK_GAMEPAD_RIGHT_THUMBSTICK_LEFT | 0xDA | 332 | 右摇杆向左 |
VK_OEM_4 | 0xDB | 333 | OEM左括号 ([{)键 |
VK_OEM_5 | 0xDC | 334 | OEM反斜线 (|)键 |
VK_OEM_6 | 0xDD | 335 | OEM右括号 (]})键 |
VK_OEM_7 | 0xDE | 336 | OEM单引号 ('")键 |
VK_OEM_8 | 0xDF | 337 | OEM 8键 |
Reserved | 0xE0 | 340 | 保留 |
VK_OEM_AX | 0xE1 | 341 | 扩展或增强键 |
VK_OEM_102 | 0xE2 | 342 | OEM尖括号 (<>或|)键 |
VK_ICO_HELP | 0xE3 | 343 | ICO帮助键 |
VK_ICO_00 | 0xE4 | 344 | ICO 00键 |
#if(WINVER >= 0x0400) | |||
VK_PROCESSKEY | 0xE5 | 345 | 进程键 |
#endif /* WINVER >= 0x0400 */ | |||
VK_ICO_CLEAR | 0xE6 | 346 | ICO清除键 |
#if(_WIN32_WINNT >= 0x0500) | |||
VK_PACKET | 0xE7 | 347 | |
#endif /* _WIN32_WINNT >= 0x0500 */ | |||
Reserved | 0xE8 | 350 | 保留 |
VK_OEM_RESET | 0xE9 | 351 | OEM 重置键 |
VK_OEM_JUMP | 0xEA | 352 | OEM 跳转键 |
VK_OEM_PA1 | 0xEB | 353 | OEM PA1键 |
VK_OEM_PA2 | 0xEC | 554 | OEM PA2键 |
VK_OEM_PA3 | 0xED | 355 | OEM PA3键 |
VK_OEM_WSCTRL | 0xEE | 356 | OEM WSCTRL键 |
VK_OEM_CUSEL | 0xEF | 357 | OEM CUSEL键 |
VK_OEM_ATTN | 0xF0 | 360 | OEM ATTN键 |
VK_OEM_FINISH | 0xF1 | 361 | OEM FINISH键 |
VK_OEM_COPY | 0xF2 | 362 | OEM COPY键 |
VK_OEM_AUTO | 0xF3 | 363 | OEM AUTO键 |
VK_OEM_ENLW | 0xF4 | 364 | OEM ENLW键 |
VK_OEM_BACKTAB | 0xF5 | 365 | OEM BACKTAB键 |
VK_ATTN | 0xF6 | 366 | ATTN键 |
VK_CRSEL | 0xF7 | 367 | CRSEL键 |
VK_EXSEL | 0xF8 | 370 | EXSEL键 |
VK_EREOF | 0xF9 | 371 | EREOF键 |
VK_PLAY | 0xFA | 372 | PLAY键 |
VK_ZOOM | 0xFB | 373 | ZOOM键 |
VK_NONAME | 0xFC | 374 | NONAME键 |
VK_PA1 | 0xFD | 375 | PA1键 |
VK_OEM_CLEAR | 0xFE | 376 | OEM CLEAR键 |