鼠标键盘虚拟键值表

简介:
#define VK_LBUTTON           0x01 输入笔点击
#define VK_RBUTTON           0x02 鼠标右键
#define VK_CANCEL             0x03 Control-Break处理
#define VK_MBUTTON         0x04          /* NOT contiguous with L & RBUTTON */ 鼠标中间键

#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 
#define VK_CAPITAL           0x14 Caps lock键

#define VK_KANA                 0x15
#define VK_HANGEUL           0x15 /* old name - should be here for compatibility */
#define VK_HANGUL            0x15
#define VK_JUNJA                0x17
#define VK_FINAL                0x18
#define VK_HANJA                0x19
#define VK_KANJI                0x19

#define VK_ESCAPE                  0x1B Escape键

#define VK_CONVERT              0x1C
#define VK_NONCONVERT     0x1D
#define VK_ACCEPT                  0x1E
#define VK_MODECHANGE     0x1F

#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 Select键
#define VK_PRINT                      0x2A 
#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键

/* VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39) */
/* VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A) */

#define VK_LWIN           0x5B
#define VK_RWIN           0x5C
#define VK_APPS           0x5D

#define VK_NUMPAD0        0x60 数字小键盘上的0
#define VK_NUMPAD1        0x61
#define VK_NUMPAD2        0x62
#define VK_NUMPAD3        0x63
#define VK_NUMPAD4        0x64
#define VK_NUMPAD5        0x65
#define VK_NUMPAD6        0x66
#define VK_NUMPAD7        0x67
#define VK_NUMPAD8        0x68
#define VK_NUMPAD9        0x69
#define VK_MULTIPLY          0x6A 数字小键盘上的*
#define VK_ADD                     0x6B 数字小键盘上的+
#define VK_SEPARATOR       0x6C 分隔符键
#define VK_SUBTRACT          0x6D 数字小键盘上的-
#define VK_DECIMAL           0x6E 数字小键盘上的.
#define VK_DIVIDE               0x6F 数字小键盘上的/
#define VK_F1             0x70
#define VK_F2             0x71
#define VK_F3             0x72
#define VK_F4             0x73
#define VK_F5             0x74
#define VK_F6             0x75
#define VK_F7             0x76
#define VK_F8             0x77
#define VK_F9             0x78
#define VK_F10            0x79
#define VK_F11            0x7A
#define VK_F12            0x7B
#define VK_F13            0x7C
#define VK_F14            0x7D
#define VK_F15            0x7E
#define VK_F16            0x7F
#define VK_F17            0x80
#define VK_F18            0x81
#define VK_F19            0x82
#define VK_F20            0x83
#define VK_F21            0x84
#define VK_F22            0x85
#define VK_F23            0x86
#define VK_F24            0x87

#define VK_0 ... VK_9   0x30 - 0x39 0-9键
#define VK_A ... VK_Z   0x41 - 0x5A A-Z键


#define VK_NUMLOCK        0x90
#define VK_SCROLL         0x91 Scroll Lock

/*
* VK_L* & VK_R* - left and right Alt, Ctrl and Shift virtual keys.
* Used only as parameters to GetAsyncKeyState() and GetKeyState().
* No other API or message will distinguish left and right keys in this way.
*/
#define VK_LSHIFT               0xA0
#define VK_RSHIFT               0xA1
#define VK_LCONTROL       0xA2
#define VK_RCONTROL       0xA3
#define VK_LMENU                0xA4 左Alt键
#define VK_RMENU                0xA5 右Alt键

#if(WINVER >= 0x0400)
#define VK_PROCESSKEY     0xE5
#endif /* WINVER >= 0x0400 */

#define VK_ATTN                 0xF6
#define VK_CRSEL                0xF7
#define VK_EXSEL                0xF8
#define VK_EREOF                0xF9
#define VK_PLAY                 0xFA
#define VK_ZOOM                 0xFB
#define VK_NONAME            0xFC
#define VK_PA1                     0xFD
#define VK_OEM_CLEAR      0xFE

VK_OEM_1                 BA                    Used for miscellaneous characters; it can vary by keyboard.
                                               Windows 2000/XP: For the US standard keyboard, the ';:' key

VK_OEM_PLUS              BB                    Windows 2000/XP: For any country/region, the '=+' key

VK_OEM_COMMA             BC                    Windows 2000/XP: For any country/region, the ',<' key

VK_OEM_MINUS             BD                    Windows 2000/XP: For any country/region, the '-_' key

VK_OEM_PERIOD            BE                    Windows 2000/XP: For any country/region, the '>.' key

VK_OEM_2                 BF                    Used for miscellaneous characters; it can vary by keyboard.
                                               Windows 2000/XP: For the US standard keyboard, the '/?' key

VK_OEM_3                 C0                    Used for miscellaneous characters; it can vary by keyboard.
                                               Windows 2000/XP: For the US standard keyboard, the '`~' key

                       - C1-D7                 Reserved
                       - D8-DA                 Unassigned

VK_OEM_4                 DB                    Used for miscellaneous characters; it can vary by keyboard.
                                               Windows 2000/XP: For the US standard keyboard, the '[{' key

VK_OEM_5                 DC                    Used for miscellaneous characters; it can vary by keyboard.
                                               Windows 2000/XP: For the US standard keyboard, the '\|' key

VK_OEM_6                 DD                    Used for miscellaneous characters; it can vary by keyboard.
                                               Windows 2000/XP: For the US standard keyboard, the ']}' key

VK_OEM_7                 DE                    Used for miscellaneous characters; it can vary by keyboard.

            Windows 2000/XP: For the US standard keyboard, the '' "' key

本文转自博客园知识天地的博客,原文链接:鼠标键盘虚拟键值表,如需转载请自行联系原博主。


相关文章
|
3月前
|
JavaScript 前端开发
关于键盘导航顺序和 tabindex 属性的关联关系
关于键盘导航顺序和 tabindex 属性的关联关系
26 0
|
21天前
|
Windows
MyKeymap按键映射工具
MyKeymap能减少键鼠切换、实现全键盘操作,让「编辑文字」和「窗口管理」更快捷。提升工作学习中写代码、编辑文字、整理笔记、管理窗口的效率,掌握MyKeymap后,能让使用Windows的日常,拥有流畅、舒适、顺滑的操作体验。
21 2
MyKeymap按键映射工具
|
7月前
|
Android开发
控制安卓手机物理返回键
控制安卓手机物理返回键
|
Windows
scrlk键是什么意思(电脑键盘每个按键的作用详细图解)
scrlk键是什么意思(电脑键盘每个按键的作用详细图解)
3133 0
|
Java Android开发
接入物理键盘时, 默认弹出软件键盘
接入物理键盘时, 默认弹出软件键盘
206 0
|
程序员 Windows
Win键+R键快捷命令汇总
对Windows操作比较熟的人都知道,Win键 + R键可以快速唤起Run窗口,输入命令就可以方便快捷地打开很多打开应用,可以使用到很多系统自带的工具,其中程序员用到的最多的肯定就是cmd了,可以打开DOS窗口。
Win键+R键快捷命令汇总
|
Windows
计算机常用和你不知道的组合键集合
计算机常用和你不知道的组合键集合,赶快收藏起来吧
354 0
计算机常用和你不知道的组合键集合
Win系统 - 你知道 insert 键的隐藏功能吗?
Win系统 - 你知道 insert 键的隐藏功能吗?
612 0
Win系统 - 你知道 insert 键的隐藏功能吗?
|
API
键盘虚拟键值编码表 使用keybd_Event
键盘虚拟键值编码表 使用keybd_Event 模拟键盘输入首先要用到一个API函数:keybd_event。  我们是菜鸟,所以不必具体去理解它的详细用法,只要按以下方法使用即可了!呵呵!  模拟按键有两个基本动作,即按下键和放开按键,所以我们每模拟一次按键就要调用两次该API函数,其方法是...
1160 0