键值表



 

VK_LBUTTON 0x01 输入笔点击
VK_RBUTTON 0x02 鼠标右键
VK_CANCEL 0x03 Control-Break处理
VK_MBUTTON 0x04 鼠标中间键
VK_BACK 0x08 Backspace键
VK_TAB 0x09 Tab键
VK_CLEAR 0x0C Clear键
VK_RETURN 0x0D Enter键
VK_SHIFT 0x10 Shift键
VK_CONTROL 0x11 Ctrl键
VK_MENU 0x12 Alt键
VK_PAUSE 0x13  
VK_CAPITAL 0x14 Caps lock键
VK_KANA 0x15  
VK_HANGEUL 0x15  
VK_HANGUL 0x15  
VK_JUNJA 0x17  
VK_FINAL 0x18  
VK_HANJA 0x19  
VK_KANJI 0x19  
VK_ESCAPE 0x1B Escape键
VK_CONVERT 0x1C  
VK_NONCONVERT 0x1D  
VK_ACCEPT 0x1E  
VK_MODECHANGE 0x1F  
VK_SPACE 0x20 空格键
VK_PRIOR 0x21 Page up键
VK_NEXT 0x22 Page down键
VK_END 0x23 End键
VK_HOME 0x24 Home键
VK_LEFT 0x25 左箭头键
VK_UP 0x26 上箭头键
VK_RIGHT 0x27 右箭头键
VK_DOWN 0x28 下箭头键
VK_SELECT 0x29 Select键
VK_PRINT 0x2A  
VK_EXECUTE 0x2B Execute键
VK_SNAPSHOT 0x2C Print screen键
VK_INSERT 0x2D Insert键
VK_DELETE 0x2E Delete键
VK_HELP 0x2F Help键
VK_0 - VK_9 0x30 - 0x39  
VK_A 0x41  
VK_B 0x42  
VK_C 0x43  
VK_D 0x44  
VK_E 0x45  
VK_F 0x46  
VK_G 0x47  
VK_H 0x48  
VK_I 0x49  
VK_J 0x4A  
VK_K 0x4B  
VK_L 0x4C  
VK_M 0x4D  
VK_N 0x4E  
VK_O 0x4F  
VK_P 0x50  
VK_Q 0x51  
VK_R 0x52  
VK_S 0x53  
VK_T 0x54  
VK_U 0x55  
VK_V 0x56  
VK_W 0x57  
VK_X 0x58  
VK_Y 0x59  
VK_Z 0x5A  
VK_LWIN 0x5B  
VK_RWIN 0x5C  
VK_APPS 0x5D  
VK_NUMPAD0 - K_NUMPAD9 0x60 - 0x69 数字小键盘上的0 - 9
VK_MULTIPLY 0x6A 数字小键盘上的*
VK_ADD 0x6B 数字小键盘上的+
VK_SEPARATOR 0x6C 分隔符键
VK_SUBTRACT 0x6D 数字小键盘上的-
VK_DECIMAL 0x6E 数字小键盘上的.
VK_DIVIDE 0x6F 数字小键盘上的/
VK_F1 0x70  
VK_F2 0x71  
VK_F3 0x72  
VK_F4 0x73  
VK_F5 0x74  
VK_F6 0x75  
VK_F7 0x76  
VK_F8 0x77  
VK_F9 0x78  
VK_F10 0x79  
VK_F11 0x7A  
VK_F12 0x7B  
VK_F13 - VK_F24 0x7C - 0x87  
VK_NUMLOCK 0x90  
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.
VK_LSHIFT 0xA0  
VK_RSHIFT 0xA1  
VK_LCONTROL 0xA2  
VK_RCONTROL 0xA3  
VK_LMENU 0xA4 左Alt键
VK_RMENU 0xA5 右Alt键
VK_PROCESSKEY 0xE5 WINVER >= 0x0400
VK_ATTN 0xF6  
VK_CRSEL 0xF7  
VK_EXSEL 0xF8  
VK_EREOF 0xF9  
VK_PLAY 0xFA  
VK_ZOOM 0xFB  
VK_NONAME 0xFC  
VK_PA1 0xFD  
VK_OEM_CLEAR 0xFE  
VK_OEM_1 0xBA ;:      US standard keyboard
VK_OEM_PLUS 0xBB =+     any country/region
VK_OEM_COMMA 0xBC ,<     any country/region
VK_OEM_MINUS 0xBD -_     any country/region
VK_OEM_PERIOD 0xBE >.     any country/region
VK_OEM_2 0xBF /?     US standard keyboard
VK_OEM_3 0xC0 `~     US standard keyboard
  0xC1 - 0xD7 保留
  0xD8 - 0xDA 未赋值
VK_OEM_4 0xDB [{'     US standard keyboard
VK_OEM_5 0xDC \|     US standard keyboard
VK_OEM_6 0xDD ]}     US standard keyboard
VK_OEM_7 0xDE '"     US standard keyboard

你可能感兴趣的:(键值表)