【整理】Windows虚拟键值

哔哩哔哩

VK_LBUTTON              鼠标左键                        0x01VK_RBUTTON              鼠标右键                        0x02VK_CANCEL                Ctrl + Break                    0x03VK_MBUTTON              鼠标中键                       0x04


(相关资料图)

VK_BACK                    Backspace 键                  0x08VK_TAB                     Tab 键                            0x09

VK_RETURN                回车键                           0x0D

VK_SHIFT                  Shift 键                          0x10VK_CONTROL              Ctrl 键                          0x11VK_MENU                   Alt 键                           0x12VK_PAUSE                  Pause 键                        0x13VK_CAPITAL               Caps Lock 键                  0x14

VK_ESCAPE                Esc 键                          0x1B

VK_SPACE                 空格键                                0x20VK_PRIOR                  Page Up 键                          0x21VK_NEXT                   Page Down 键                    

VK_END                    End 键                                0x23VK_HOME                 Home 键                                 0x24VK_LEFT                   左箭头键                              0x25VK_UP                     上箭头键                                 0x26VK_RIGHT                 右箭头键                                 0x27VK_DOWN                下箭头键                                 0x28VK_SNAPSHOT          Print Screen 键                      0x2CVK_INSERT               Insert 键                                 0x2DVK_DELETE               Delete 键                               0x2E

\'0\' – \'9\'                     数字 0 - 9                             0x30 - 0x39\'A\' – \'Z\'                    字母 A - Z                             0x41 - 0x5A

VK_LWIN                  左WinKey(104键盘才有)           0x5BVK_RWIN                  右WinKey(104键盘才有)           0x5CVK_APPS                   AppsKey(104键盘才有)             0x5D

VK_NUMPAD0              小键盘 0 键                          0x60VK_NUMPAD1             小键盘 1 键                          0x61

VK_NUMPAD2             小键盘 2 键                          0x62VK_NUMPAD3             小键盘 3 键                          0x63VK_NUMPAD4             小键盘 4 键                          0x64VK_NUMPAD5             小键盘 5 键                          0x65VK_NUMPAD6             小键盘 6 键                          0x66VK_NUMPAD7             小键盘 7 键                          0x67VK_NUMPAD8             小键盘 8 键                          0x68VK_NUMPAD9             小键盘 9 键                          0x69

VK_F1 - VK_F24         功能键F1 – F24                     0x70 - 0x87

VK_NUMLOCK             Num Lock 键                  0x90VK_SCROLL                Scroll Lock 键                 0x91

[责任编辑:]