电脑键盘键值表

合集下载

键盘代码表

键盘代码表

键盘代码表键盘代码表Tags:vb 鼠标键码:常数值描述vbKeyLButton 1 鼠标左键vbKeyRButton 2 鼠标右键vbKeyCancel 3 CANCEL 键vbKeyMButton 4 鼠标中键vbKeyBack 8方向键键值常数值描述vbKeyLeft 37 LEFT ARROW 键vbKeyUp 38 UP ARROW 键vbKeyRight 39 RIGHT ARROW 键vbKeyDown 40 DOWN ARROW 键常用功能键常数值描述vbKeyBack 8 BACKSPACE 键vbKeyTab 9 TAB 键vbKeyReturn 13 ENTER 键vbKeyShift 16 SHIFT 键vbKeyControl 17 CTRL 键vbKeyCapital 20 CAPS LOCK 键vbKeyEscape 27 ESC 键vbKeySpace 32 SPACEBAR 键vbKeyPageUp 33 PAGEUP 键vbKeyPageDown 34 PAGEDOWN 键vbKeyEnd 35 END 键vbKeyPrint 42 PRINT SCREEN 键vbKeyDelete 46 DEL 键vbKeyNumlock 144 NUM LOCK 键0-9键值常数值描述vbKey0 48 0 键vbKey1 49 1 键vbKey2 50 2 键vbKey3 51 3 键vbKey4 52 4 键vbKey5 53 5 键vbKey6 54 6 键vbKey7 55 7 键vbKey8 56 8 键vbKey9 57 9 键A-Z键值vbKeyA 65 A键vbKeyB 66 B键vbKeyC 67 C键vbKeyD 68 D键vbKeyE 69 E键vbKeyF 70 F键vbKeyG 71 G键vbKeyH 72 H键vbKeyI 73 I键vbKeyJ 74 J键vbKeyK 75 K键vbKeyL 76 L键vbKeyM 77 M键vbKeyN 78 N键vbKeyO 79 O键vbKeyP 80 P键vbKeyQ 81 Q键vbKeyR 82 R键vbKeyS 83 S键vbKeyT 84 T键vbKeyU 85 U键vbKeyV 86 V键vbKeyW 87 W键vbKeyX 88 X键vbKeyY 89 Y键vbKeyZ 90 Z键数字小键盘上的键vbKeyNumpad0 96 0键vbKeyNumpad1 97 1键vbKeyNumpad2 98 2键vbKeyNumpad3 99 3键vbKeyNumpad4 100 4键vbKeyNumpad5 101 5键vbKeyNumpad6 102 6键vbKeyNumpad7 103 7键vbKeyNumpad8 104 8键vbKeyNumpad9 105 9键vbKeyMultiply 106 乘号(*)键vbKeyAdd 107 加号 (+)键vbKeySeparator 108 ENTER键小键盘上)vbKeySubtract 109 减号(-) 键vbKeyDecimal 110 小数点(.) 键vbKeyDivide 111 除号 (/) 键功能键常数值描述vbKeyF1 112 F1 键vbKeyF2 113 F2 键vbKeyF3 114 F3 键vbKeyF4 115 F4 键vbKeyF5 116 F5 键vbKeyF6 117 F6 键vbKeyF7 118 F7 键vbKeyF8 119 F8 键vbKeyF9 120 F9 键vbKeyF10 121 F10 键vbKeyF11 122 F11 键vbKeyF12 123 F12 键vbKeyF13 124 F13 键vbKeyF14 125 F14 键vbKeyF15 126 F15 键vbKeyF16 127 F16键盘按键和键盘对应代码表(总览):A <--------> 65B <--------> 66C <--------> 67D <-------->68E <--------> 69F <--------> 70G <--------> 71H <-------->72I <--------> 73 J <--------> 74 K <--------> 75 L <-------->76M <--------> 77 N <--------> 78 O <--------> 79 P <--------> 80Q <--------> 81 R <--------> 82 S <--------> 83 T <--------> 84U <--------> 85 V <--------> 86 W <--------> 87 X <--------> 88Y <--------> 89 Z <--------> 90 0 <--------> 48 1 <--------> 492 <--------> 503 <--------> 514 <--------> 525 <--------> 536 <--------> 547 <--------> 558 <--------> 569 <--------> 57数字键盘 1 <--------> 96 数字键盘 2 <--------> 97 数字键盘 3 <--------> 98数字键盘 4 <--------> 99 数字键盘 5 <--------> 100 数字键盘6 <--------> 101数字键盘 7 <--------> 102 数字键盘 8 <--------> 103 数字键盘9 <--------> 104数字键盘 0 <--------> 105乘号 <--------> 106 加号 <--------> 107 Enter <--------> 108 减号 <--------> 109小数点 <--------> 110 除号 <--------> 111F1 <--------> 112 F2 <--------> 113 F3 <--------> 114 F4 <--------> 115F5 <--------> 116 F6 <--------> 117 F7 <--------> 118 F8 <--------> 119F9 <--------> 120 F10 <--------> 121 F11 <--------> 122 F12 <--------> 123F13 <--------> 124 F14 <--------> 125 F15 <--------> 126 Backspace <--------> 8Tab <--------> 9Clear <--------> 12Enter <--------> 13Shift <--------> 16Control <--------> 17Alt <--------> 18Caps Lock <--------> 20 Esc <--------> 27空格键 <--------> 32 Page Up <--------> 33 Page Down <--------> 34 End <--------> 35 Home <--------> 36左箭头 <--------> 37向上箭头 <--------> 38 右箭头 <--------> 39向下箭头 <--------> 40 Insert <--------> 45 Delete <--------> 46 Help <--------> 47 Num Lock <--------> 144 ; : <--------> 186= + <--------> 187- _ <--------> 189/ ? <--------> 191` ~ <--------> 192[ { <--------> 219| <--------> 220] } <--------> 221'' ' <--------> 222。

键盘的键值

键盘的键值

mfc虚拟按键的总结符号常量十六进制值指定的鼠标或键盘按键VK_LBUTTON 01 鼠标左键VK_RBUTTON 02 鼠标右键VK_CANCEL 03 Control-break 过程VK_MBUTTON 04 鼠标中键VK_BACK 08 BACKSPACE 键VK_TAB 09 TAB 键VK_CLEAR 0C CLEAR 键VK_RETURN 0D ENTER 键VK_SHIFT 10 SHIFT 键VK_CONTROL 11 CTRL 键VK_MENU 12 ALT 键VK_PAUSE 13 PAUSE 键VK_CAPITAL 14 CAPS LOCK 键VK_ESCAPE 1B ESC 键VK_SPACE 20 SPACEBARVK_PRIOR 21 PAGE UP 键VK_NEXT 22 PAGE DOWN 键VK_END 23 END 键VK_HOME 24 HOME 键VK_LEFT 25 LEFT ARROW 键VK_UP 26 UP ARROW 键VK_RIGHT 27 RIGHT ARROW 键VK_DOWN 28 DOWN ARROW 键VK_SELECT 29 SELECT 键VK_EXECUTE 2B EXECUTE 键VK_SNAPSHOT 2C PRINT SCREEN键(用于Windows 3.0及以后版本)VK_INSERT 2D INS 键VK_DELETE 2E DEL 键VK_HELP 2F HELP键/////////////////////对于非小键盘上的数字键和字母键,直接在单引号中加入该键就行. 比如: a 键: 'A'1 键: '1'/////////////////////////////////VK_LWIN 5B Left Windows 键 (Microsoft自然键盘)VK_RWIN 5C Right Windows 键 (Microsoft自然键盘)VK_APPS 5D Applications 键 (Microsoft自然键盘)VK_NUMPAD0 60 数字小键盘上的 0 键VK_NUMPAD1 61 数字小键盘上的 1 键VK_NUMPAD2 62 数字小键盘上的 2 键VK_NUMPAD3 63 数字小键盘上的 3 键VK_NUMPAD4 64 数字小键盘上的 4 键VK_NUMPAD5 65 数字小键盘上的 5 键VK_NUMPAD6 66 数字小键盘上的 6 键VK_NUMPAD7 67 数字小键盘上的 7 键VK_NUMPAD8 68 数字小键盘上的 8 键VK_NUMPAD9 69 数字小键盘上的 9 键VK_MULTIPLY 6A Multiply 键VK_ADD 6B Add键VK_SEPARATOR 6C Separator 键VK_SUBTRACT 6D Subtract 键VK_DECIMAL 6E Decimal 键VK_DIVIDE 6F Divide 键VK_F1 70 F1 键VK_F2 71 F2 键VK_F3 72 F3 键VK_F4 73 F4 键VK_F5 74 F5 键VK_F6 75 F6 键VK_F7 76 F7 键VK_F8 77 F8 键VK_F9 78 F9 键VK_F10 79 F10 键VK_F11 7A F11 键VK_F12 7B F12 键VK_F13 7C F13 键VK_F14 7D F14 键VK_F15 7E F15 键VK_F16 7F F16 键VK_F17 80H F17 键VK_F18 81H F18 键VK_F19 82H F19 键VK_F20 83H F20 键VK_F21 84H F21 键VK_F22 85H F22 键VK_F23 86H F23 键VK_F24 87H F24 键VK_NUMLOCK 90 NUM LOCK 键VK_SCROLL 91 SCROLL LOCK 键VK_ATTN F6 Attn 键VK_CRSEL F7 CrSel 键VK_EXSEL F8 ExSel 键VK_EREOF F9 Erase EOF 键VK_PLAY FA Play 键VK_ZOOM FB Zoom 键VK_OEM_CLEAR FE Clear 键。

键盘键与虚拟键码对照表

键盘键与虚拟键码对照表

键盘键与虚拟键码对照表键盘键与虚拟键码对照表字母和数字键数字小键盘的键功能键其它键键键码键键码键键码键键码A 65 0 96 F1 112 Backspace 8B 66 1 97 F2 113 Tab 9C 67 2 98 F3 114 Clear 12D 68 3 99 F4 115 Enter 13E 69 4 100 F5 116 Shift 16F 70 5 101 F6 117 Control 17G 71 6 102 F7 118 Alt 1 8H 72 7 103 F8 119 Caps Lock 20I 73 8 104 F9 120 Esc 27 J 74 9 105 F10 121 Spacebar 32 K 75 * 106 F11 122 Page Up 33L 76 + 107 F12 123 Page Down 34M 77 Enter 108 -- -- End 3 5N 78 - 109 -- -- Home 3 6O 79 . 110 -- -- Left Arrow 37P 80 / 111 -- -- Up Arrow38Q 81 -- -- -- -- Right Arro w 39R 82 -- -- -- -- Down Arrow 40S 83 -- -- -- -- Insert45T 84 -- -- -- -- Delete46U 85 -- -- -- -- Help47V 86 -- -- -- -- Num Lock 144W 87X 88Y 89Z 900 481 492 503 514 525 536 547 558 569 570x1 鼠标左键0x2 鼠标右键0x3 CANCEL 键0x4 鼠标中键0x8 BACKSPACE 键0x9 TAB 键0xC CLEAR 键0xD ENTER 键0x10 SHIFT 键0x11 CTRL 键0x12 MENU 键0x13 PAUSE 键0x14 CAPS LOCK 键0x1B ESC 键0x20 SPACEBAR 键0x21 PAGE UP 键0x22 PAGE DOWN 键0x23 END 键0x24 HOME 键0x25 LEFT ARROW 键0x26 UP ARROW 键0x27 RIGHT ARROW 键0x28 DOWN ARROW 键0x29 Select 键0x2A PRINT SCREEN 键0x2B EXECUTE 键0x2C SNAPSHOT 键0x2D Insert 键0x2E Delete 键0x2F HELP 键0x90 NUM LOCK 键A 至Z 键与 A –Z 字母的ASCII 码相同:值描述65 A 键66 B 键67 C 键68 D 键69 E 键70 F 键71 G 键72 H 键73 I 键74 J 键76 L 键77 M 键78 N 键79 O 键80 P 键81 Q 键82 R 键83 S 键84 T 键85 U 键86 V 键87 W 键88 X 键89 Y 键90 Z 键0 至9 键与数字0 –9 的ASCII 码相同:值描述49 1 键50 2 键51 3 键52 4 键53 5 键54 6 键55 7 键56 8 键57 9 键下列常数代表数字键盘上的键:值描述0x60 0 键0x61 1 键0x62 2 键0x63 3 键0x64 4 键0x65 5 键0x67 7 键0x68 8 键0x69 9 键0x6A MULTIPLICATION SIGN (*) 键0x6B PLUS SIGN (+) 键0x6C ENTER 键0x6D MINUS SIGN (–) 键0x6E DECIMAL POINT (.) 键0x6F DIVISION SIGN (/) 键下列常数代表功能键:值描述0x70 F1 键0x71 F2 键0x72 F3 键0x73 F4 键0x74 F5 键0x75 F6 键0x77 F8 键0x78 F9 键0x79 F10 键0x7A F11 键0x7B F12 键0x7C F13 键0x7D F14 键0x7E F15 键0x7F F16 键0 None3 Cancel(Break)8 Back9 Tab13 Return16 ShiftKey17 ControlKey18 Menu19 Pause20 Capital(大小写) 27 Escape32 Space33 PageUp34 Next(PageDonw)35 End36 Home37 Left38 Up39 Right40 Down0-9 48-5745 Insert46 Delete65->90 A->Z91 LWin93 Apps96 105 NumPad0-106 Multiply *107 Add+108109 Subtract-110 Decimal .111 Divide /112-123 F1-F12144 NumLock145 Scroll173 VolumeMute174 VolumeDown175 VolumeUp186 Oem1 ; 187 Oemplus = 188 Oemcomma , 189 OemMinus -190 OemPeriod .191 OemQuestion /192 Oemtilde `219 OemOpenBrackets [220 Oem5 \ 221 Oem6 ] 222 Oem7 '。

键盘键值表

键盘键值表

Q键
vbKeyR
82
R键
vbKeyS
83
S键
vbKeyT
84
T键
vbKeyU
85
U键
vbKeyV
86
V键
vbKeyW
87
W键
vbKeyX
88
X键
vbKeyY
89
Y键
vbKeyZ
90
Z键
0 至 9 键与数字 0 – 9 的 ASCII 码相同:
vbKeyNumpad0 0x60
0键
vbKeyNumpad1 0x61
1键
vbKeyNumpad2 vbKeyNumpad3 vbKeyNumpad4 vbKeyNumpad5 vbKeyNumpad6 vbKeyNumpad7 vbKeyNumpad8 vbKeyNumpad9 vbKeyMultiply vbKeyAdd vbKeySeparator vbKeySubtract vbKeyDecimal vbKeyDivide
0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6A 0x6B 0x6C 0x6D 0x6E 0x6F
下列常数代表功能键:
vbKeyF1
0x70
vbKeyF2
0x71
vbKeyF3
0x72
vbKeyF4
0x73
vbKeyF5
0x74
vbKeyF6
0x75
vbKeyF7
描述鼠标左键鼠标右键cancel键鼠标中键backspace键tab键clear键enter键shift键ctrl键menu键pause键capslock键esc键spacebar键pageup键pagedown键end键home键leftarrow键uparrow键rightarrow键downarrow键select键printscreen键execute键snapshot键insert键delete键help键vbkeylbutton0x1vbkeyrbutton0x2vbkeycancel0x3vbkeymbutton0x4vbkeyback0x8vbkeytab0x9vbkeyclear0xcvbkeyreturn0xdvbkeyshift0x10vbkeycontrol0x11vbkeymenu0x12vbkeypause0x13vbkeycapital0x14vbkeyescape0x1bvbkeyspace0x20vbkeypageup0x21vbkeypagedown0x22vbkeyend0x23vbkeyhome0x24vbkeyleft0x25vbkeyup0x26vbkeyright0x27vbkeydown0x28vbkeyselect0x29vbkeyprint0x2avbkeyexecute0x2bvbkeysnapshot0x2cvbkeyinsert0x2dvbkeydelete0x2evbkeyhelp0x2fvbkeynumlock0x90numlock键a至z键与az字母的ascii码相同

windows和linux键值表

windows和linux键值表

windows和linux键值表windows系统下对应键值{8,KEY_BACKSPACE},{9,KEY_TAB},{13,KEY_ENTER},{16,KEY_LEFTSHIFT},{17,KEY_LEFTCTRL},{19,KEY_PAUSE},{20,KEY_CAPSLOCK},{27,KEY_ESC},{32,KEY_SPACE},{33,KEY_PAGEUP},{34,KEY_PAGEDOWN},{35,KEY_END},{36,KEY_HOME},{37,KEY_LEFT},{38,KEY_UP},{39,KEY_RIGHT},{40,KEY_DOWN},{45,KEY_INSERT},{46,KEY_DELETE},{48,KEY_0}{49,KEY_1},{50,KEY_2},{51,KEY_3},{52,KEY_4},{53,KEY_5},{54,KEY_6},{55,KEY_7},{56,KEY_8},{57,KEY_9},{65,KEY_A},{66,KEY_B},{67,KEY_C},{68,KEY_D},{69,KEY_E},{70,KEY_F},{71,KEY_G},{72,KEY_H},{73,KEY_I},{74,KEY_J},{75,KEY_K},{76,KEY_L},{77,KEY_M},{78,KEY_N},{79,KEY_O},{80,KEY_P},{81,KEY_Q},{82,KEY_R},{83,KEY_S},{84,KEY_T},{85,KEY_U},{86,KEY_V},{87,KEY_W},{88,KEY_X},{89,KEY_Y},{90,KEY_Z},{91,KEY_LEFTMETA},{93,KEY_COMPOSE},{96,KEY_GRAVE},{97,KEY_KP1},{98,KEY_KP2},{99,KEY_KP3},{100,KEY_KP4},{101,KEY_KP5},{102,KEY_KP6},{103,KEY_KP7},{104,KEY_KP8},{105,KEY_KP9},{106,KEY_KPASTERISK},{112,KEY_F1},{113,KEY_F2},{114,KEY_F3},{115,KEY_F4},{116,KEY_F5},{117,KEY_F6},{118,KEY_F7},{119,KEY_F8},{120,KEY_F9},{121,KEY_F10},{122,KEY_F11},{123,KEY_F2},{144,KEY_NUMLOCK},{145,KEY_SCROLLLOCK},{186,KEY_SEMICOLON},{187,KEY_EQUAL},{188,KEY_COMMA},{189,KEY_MINUS},{190,KEY_DOT},{191,KEY_SLASH},{219,KEY_LEFTBRACE},{210,KEY_BACKSLASH},{221,KEY_RIGHTBRACE},{222,KEY_APOSTROPHE},---------------------作者:braverior来源:CSDN原⽂:https:///braverior/article/details/8733752 版权声明:本⽂为博主原创⽂章,转载请附上博⽂链接!linux系统下对应键值#define KEY_RESERVED 0#define KEY_ESC 1#define KEY_1 2#define KEY_2 3#define KEY_3 4#define KEY_4 5#define KEY_5 6#define KEY_6 7#define KEY_7 8#define KEY_8 9#define KEY_9 10#define KEY_0 11#define KEY_MINUS 12#define KEY_EQUAL 13#define KEY_BACKSPACE 14#define KEY_TAB 15#define KEY_Q 16#define KEY_W 17#define KEY_E 18#define KEY_R 19#define KEY_T 20#define KEY_Y 21#define KEY_U 22#define KEY_I 23#define KEY_O 24#define KEY_P 25#define KEY_LEFTBRACE 26#define KEY_RIGHTBRACE 27#define KEY_ENTER 28#define KEY_LEFTCTRL 29#define KEY_A 30#define KEY_S 31#define KEY_D 32#define KEY_F 33#define KEY_G 34#define KEY_H 35#define KEY_J 36#define KEY_K 37#define KEY_L 38#define KEY_SEMICOLON 39#define KEY_APOSTROPHE 40#define KEY_GRAVE 41#define KEY_LEFTSHIFT 42#define KEY_BACKSLASH 43#define KEY_Z 44#define KEY_X 45#define KEY_C 46#define KEY_DOT 52#define KEY_SLASH 53#define KEY_RIGHTSHIFT 54#define KEY_KPASTERISK 55#define KEY_LEFTALT 56#define KEY_SPACE 57#define KEY_CAPSLOCK 58#define KEY_F1 59#define KEY_F2 60#define KEY_F3 61#define KEY_F4 62#define KEY_F5 63#define KEY_F6 64#define KEY_F7 65#define KEY_F8 66#define KEY_F9 67#define KEY_F10 68#define KEY_NUMLOCK 69#define KEY_SCROLLLOCK 70#define KEY_KP7 71#define KEY_KP8 72#define KEY_KP9 73#define KEY_KPMINUS 74#define KEY_KP4 75#define KEY_KP5 76#define KEY_KP6 77#define KEY_KPPLUS 78#define KEY_KP1 79#define KEY_KP2 80#define KEY_KP3 81#define KEY_KP0 82#define KEY_KPDOT 83#define KEY_ZENKAKUHANKAKU 85#define KEY_102ND 86#define KEY_F11 87#define KEY_F12 88#define KEY_RO 89#define KEY_KATAKANA 90#define KEY_HIRAGANA 91#define KEY_HENKAN 92#define KEY_KATAKANAHIRAGANA 93#define KEY_MUHENKAN 94#define KEY_KPJPCOMMA 95#define KEY_KPENTER 96#define KEY_RIGHTCTRL 97#define KEY_KPSLASH 98#define KEY_SYSRQ 99#define KEY_RIGHTALT 100#define KEY_LINEFEED 101#define KEY_HOME 102#define KEY_UP 103#define KEY_PAGEUP 104#define KEY_LEFT 105#define KEY_RIGHT 106#define KEY_END 107#define KEY_DOWN 108#define KEY_PAGEDOWN 109#define KEY_INSERT 110#define KEY_DELETE 111#define KEY_MACRO 112#define KEY_MUTE 113#define KEY_VOLUMEDOWN 114#define KEY_VOLUMEUP 115#define KEY_POWER 116 /* SC System Power Down */ #define KEY_KPEQUAL 117#define KEY_KPPLUSMINUS 118#define KEY_PAUSE 119#define KEY_SCALE 120 /* AL Compiz Scale (Expose) */ #define KEY_KPCOMMA 121#define KEY_HANGEUL 122#define KEY_HANGUEL KEY_HANGEUL#define KEY_HANJA 123#define KEY_YEN 124#define KEY_LEFTMETA 125#define KEY_RIGHTMETA 126#define KEY_COMPOSE 127#define KEY_STOP 128 /* AC Stop */#define KEY_COPY 133 /* AC Copy */#define KEY_OPEN 134 /* AC Open */#define KEY_PASTE 135 /* AC Paste */#define KEY_FIND 136 /* AC Search */#define KEY_CUT 137 /* AC Cut */#define KEY_HELP 138 /* AL Integrated Help Center */#define KEY_MENU 139 /* Menu (show menu) */#define KEY_CALC 140 /* AL Calculator */#define KEY_SETUP 141#define KEY_SLEEP 142 /* SC System Sleep */#define KEY_WAKEUP 143 /* System Wake Up */#define KEY_FILE 144 /* AL Local Machine Browser */#define KEY_SENDFILE 145#define KEY_DELETEFILE 146#define KEY_XFER 147#define KEY_PROG1 148#define KEY_PROG2 149#define KEY_WWW 150 /* AL Internet Browser */#define KEY_MSDOS 151#define KEY_COFFEE 152 /* AL Terminal Lock/Screensaver */#define KEY_SCREENLOCK KEY_COFFEE#define KEY_DIRECTION 153#define KEY_CYCLEWINDOWS 154#define KEY_MAIL 155#define KEY_BOOKMARKS 156 /* AC Bookmarks */#define KEY_COMPUTER 157#define KEY_BACK 158 /* AC Back */#define KEY_FORWARD 159 /* AC Forward */#define KEY_CLOSECD 160#define KEY_EJECTCD 161#define KEY_EJECTCLOSECD 162#define KEY_NEXTSONG 163#define KEY_PLAYPAUSE 164#define KEY_PREVIOUSSONG 165#define KEY_STOPCD 166#define KEY_RECORD 167#define KEY_REWIND 168#define KEY_PHONE 169 /* Media Select Telephone */#define KEY_ISO 170#define KEY_CONFIG 171 /* AL Consumer Control Configuration */ #define KEY_HOMEPAGE 172 /* AC Home */#define KEY_REFRESH 173 /* AC Refresh */#define KEY_EXIT 174 /* AC Exit */#define KEY_MOVE 175#define KEY_EDIT 176#define KEY_SCROLLUP 177#define KEY_SCROLLDOWN 178#define KEY_KPLEFTPAREN 179#define KEY_KPRIGHTPAREN 180#define KEY_NEW 181 /* AC New */#define KEY_REDO 182 /* AC Redo/Repeat */#define KEY_F13 183#define KEY_F14 184#define KEY_F15 185#define KEY_F16 186#define KEY_F17 187#define KEY_F18 188#define KEY_F19 189#define KEY_F20 190#define KEY_F21 191#define KEY_F22 192#define KEY_F23 193#define KEY_F24 194#define KEY_PLAYCD 200#define KEY_PAUSECD 201#define KEY_PROG3 202#define KEY_PROG4 203#define KEY_DASHBOARD 204 /* AL Dashboard */#define KEY_SUSPEND 205#define KEY_CLOSE 206 /* AC Close */#define KEY_PLAY 207#define KEY_FASTFORWARD 208#define KEY_BASSBOOST 209#define KEY_PRINT 210 /* AC Print */#define KEY_HP 211#define KEY_CAMERA 212#define KEY_SOUND 213#define KEY_QUESTION 214#define KEY_FINANCE 219 /* AL Checkbook/Finance */#define KEY_SPORT 220#define KEY_SHOP 221#define KEY_ALTERASE 222#define KEY_CANCEL 223 /* AC Cancel */#define KEY_BRIGHTNESSDOWN 224#define KEY_BRIGHTNESSUP 225#define KEY_MEDIA 226#define KEY_SWITCHVIDEOMODE 227 /* Cycle between available videooutputs (Monitor/LCD/TV-out/etc) */#define KEY_KBDILLUMTOGGLE 228#define KEY_KBDILLUMDOWN 229#define KEY_KBDILLUMUP 230#define KEY_SEND 231 /* AC Send */#define KEY_REPLY 232 /* AC Reply */#define KEY_FORWARDMAIL 233 /* AC Forward Msg */#define KEY_SAVE 234 /* AC Save */#define KEY_DOCUMENTS 235#define KEY_BATTERY 236#define KEY_BLUETOOTH 237#define KEY_WLAN 238#define KEY_UWB 239#define KEY_UNKNOWN 240#define KEY_VIDEO_NEXT 241 /* drive next video source */#define KEY_VIDEO_PREV 242 /* drive previous video source */#define KEY_BRIGHTNESS_CYCLE 243 /* brightness up, after max is min */ #define KEY_BRIGHTNESS_ZERO 244 /* brightness off, use ambient */#define KEY_DISPLAY_OFF 245 /* display device to off state */#define KEY_WIMAX 246#define KEY_RFKILL 247 /* Key that controls all radios *//* Code 255 is reserved for special needs of AT keyboard driver */#define BTN_MISC 0x100#define BTN_0 0x100#define BTN_1 0x101#define BTN_2 0x102#define BTN_3 0x103#define BTN_4 0x104#define BTN_5 0x105#define BTN_6 0x106#define BTN_7 0x107#define BTN_8 0x108#define BTN_9 0x109#define BTN_MOUSE 0x110#define BTN_LEFT 0x110#define BTN_RIGHT 0x111#define BTN_MIDDLE 0x112#define BTN_SIDE 0x113#define BTN_EXTRA 0x114#define BTN_FORWARD 0x115#define BTN_BACK 0x116#define BTN_TASK 0x117#define BTN_JOYSTICK 0x120#define BTN_TRIGGER 0x120#define BTN_THUMB 0x121#define BTN_THUMB2 0x122#define BTN_TOP 0x123#define BTN_TOP2 0x124#define BTN_PINKIE 0x125#define BTN_BASE 0x126#define BTN_BASE2 0x127#define BTN_BASE3 0x128#define BTN_BASE4 0x129#define BTN_BASE5 0x12a#define BTN_BASE6 0x12b#define BTN_DEAD 0x12f#define BTN_GAMEPAD 0x130#define BTN_A 0x130#define BTN_B 0x131#define BTN_SELECT 0x13a#define BTN_START 0x13b#define BTN_MODE 0x13c#define BTN_THUMBL 0x13d#define BTN_THUMBR 0x13e#define BTN_DIGI 0x140#define BTN_TOOL_PEN 0x140#define BTN_TOOL_RUBBER 0x141#define BTN_TOOL_BRUSH 0x142#define BTN_TOOL_PENCIL 0x143#define BTN_TOOL_AIRBRUSH 0x144#define BTN_TOOL_FINGER 0x145#define BTN_TOOL_MOUSE 0x146#define BTN_TOOL_LENS 0x147#define BTN_TOUCH 0x14a#define BTN_STYLUS 0x14b#define BTN_STYLUS2 0x14c#define BTN_TOOL_DOUBLETAP 0x14d#define BTN_TOOL_TRIPLETAP 0x14e#define BTN_TOOL_QUADTAP 0x14f /* Four fingers on trackpad */ #define BTN_WHEEL 0x150#define BTN_GEAR_DOWN 0x150#define BTN_GEAR_UP 0x151#define KEY_OK 0x160#define KEY_SELECT 0x161#define KEY_GOTO 0x162#define KEY_CLEAR 0x163#define KEY_POWER2 0x164#define KEY_OPTION 0x165#define KEY_INFO 0x166 /* AL OEM Features/Tips/Tutorial */#define KEY_TIME 0x167#define KEY_VENDOR 0x168#define KEY_ARCHIVE 0x169#define KEY_PROGRAM 0x16a /* Media Select Program Guide */ #define KEY_CHANNEL 0x16b#define KEY_FAVORITES 0x16c#define KEY_EPG 0x16d#define KEY_PVR 0x16e /* Media Select Home */#define KEY_MHP 0x16f#define KEY_LANGUAGE 0x170#define KEY_TITLE 0x171#define KEY_SUBTITLE 0x172#define KEY_ANGLE 0x173#define KEY_ZOOM 0x174#define KEY_MODE 0x175#define KEY_KEYBOARD 0x176#define KEY_SCREEN 0x177#define KEY_PC 0x178 /* Media Select Computer */#define KEY_TV 0x179 /* Media Select TV */#define KEY_TV2 0x17a /* Media Select Cable */#define KEY_VCR 0x17b /* Media Select VCR */#define KEY_VCR2 0x17c /* VCR Plus */#define KEY_SAT 0x17d /* Media Select Satellite */#define KEY_SAT2 0x17e#define KEY_CD 0x17f /* Media Select CD */#define KEY_TAPE 0x180 /* Media Select Tape */#define KEY_RADIO 0x181#define KEY_TUNER 0x182 /* Media Select Tuner */#define KEY_PLAYER 0x183#define KEY_TEXT 0x184#define KEY_DVD 0x185 /* Media Select DVD */#define KEY_AUX 0x186#define KEY_MP3 0x187#define KEY_AUDIO 0x188#define KEY_VIDEO 0x189#define KEY_DIRECTORY 0x18a#define KEY_LIST 0x18b#define KEY_MEMO 0x18c /* Media Select Messages */#define KEY_CALENDAR 0x18d#define KEY_RED 0x18e#define KEY_GREEN 0x18f#define KEY_YELLOW 0x190#define KEY_BLUE 0x191#define KEY_SHUFFLE 0x19a#define KEY_BREAK 0x19b#define KEY_PREVIOUS 0x19c#define KEY_DIGITS 0x19d#define KEY_TEEN 0x19e#define KEY_TWEN 0x19f#define KEY_VIDEOPHONE 0x1a0 /* Media Select Video Phone */#define KEY_GAMES 0x1a1 /* Media Select Games */#define KEY_ZOOMIN 0x1a2 /* AC Zoom In */#define KEY_ZOOMOUT 0x1a3 /* AC Zoom Out */#define KEY_ZOOMRESET 0x1a4 /* AC Zoom */#define KEY_WORDPROCESSOR 0x1a5 /* AL Word Processor */#define KEY_EDITOR 0x1a6 /* AL Text Editor */#define KEY_SPREADSHEET 0x1a7 /* AL Spreadsheet */#define KEY_GRAPHICSEDITOR 0x1a8 /* AL Graphics Editor */#define KEY_PRESENTATION 0x1a9 /* AL Presentation App */#define KEY_DATABASE 0x1aa /* AL Database App */#define KEY_NEWS 0x1ab /* AL Newsreader */#define KEY_VOICEMAIL 0x1ac /* AL Voicemail */#define KEY_ADDRESSBOOK 0x1ad /* AL Contacts/Address Book */#define KEY_MESSENGER 0x1ae /* AL Instant Messaging */#define KEY_DISPLAYTOGGLE 0x1af /* Turn display (LCD) on and off */#define KEY_SPELLCHECK 0x1b0 /* AL Spell Check */#define KEY_LOGOFF 0x1b1 /* AL Logoff */#define KEY_DOLLAR 0x1b2#define KEY_EURO 0x1b3#define KEY_FRAMEBACK 0x1b4 /* Consumer - transport controls */#define KEY_FRAMEFORWARD 0x1b5#define KEY_CONTEXT_MENU 0x1b6 /* GenDesc - system context menu */ #define KEY_MEDIA_REPEAT 0x1b7 /* Consumer - transport control */#define KEY_DEL_EOL 0x1c0#define KEY_DEL_EOS 0x1c1#define KEY_INS_LINE 0x1c2#define KEY_DEL_LINE 0x1c3#define KEY_FN 0x1d0#define KEY_FN_ESC 0x1d1#define KEY_FN_F1 0x1d2#define KEY_FN_F2 0x1d3#define KEY_FN_F3 0x1d4#define KEY_FN_F4 0x1d5#define KEY_FN_F5 0x1d6#define KEY_FN_F6 0x1d7#define KEY_FN_F7 0x1d8#define KEY_FN_F8 0x1d9#define KEY_FN_F9 0x1da#define KEY_FN_F10 0x1db#define KEY_FN_F11 0x1dc#define KEY_FN_F12 0x1dd#define KEY_FN_1 0x1de#define KEY_FN_2 0x1df#define KEY_FN_D 0x1e0#define KEY_FN_E 0x1e1#define KEY_FN_F 0x1e2#define KEY_FN_S 0x1e3#define KEY_FN_B 0x1e4#define KEY_BRL_DOT1 0x1f1#define KEY_BRL_DOT2 0x1f2#define KEY_BRL_DOT3 0x1f3#define KEY_BRL_DOT4 0x1f4#define KEY_BRL_DOT5 0x1f5#define KEY_BRL_DOT6 0x1f6#define KEY_BRL_DOT7 0x1f7#define KEY_BRL_DOT8 0x1f8#define KEY_BRL_DOT9 0x1f9#define KEY_BRL_DOT10 0x1fa#define KEY_NUMERIC_0 0x200 /* used by phones, remote controls, */ #define KEY_NUMERIC_1 0x201 /* and other keypads */#define KEY_NUMERIC_2 0x202#define KEY_NUMERIC_3 0x203#define KEY_NUMERIC_4 0x204#define KEY_NUMERIC_9 0x209#define KEY_NUMERIC_STAR 0x20a#define KEY_NUMERIC_POUND 0x20b#define KEY_CAMERA_FOCUS 0x210#define KEY_WPS_BUTTON 0x211 /* WiFi Protected Setup key */ ---------------------作者:braverior来源:CSDN原⽂:https:///braverior/article/details/8733752版权声明:本⽂为博主原创⽂章,转载请附上博⽂链接!。

电脑键盘按键代码表

电脑键盘按键代码表

电脑键盘按键代码表键盘按键和键盘对应代码表:A <--------> 65B <--------> 66C <--------> 67D <--------> 68E <--------> 69F <--------> 70G <--------> 71H <--------> 72I <--------> 73 J <--------> 74 K <--------> 75 L <--------> 76M <--------> 77 N <--------> 78 O <--------> 79 P <--------> 80Q <--------> 81 R <--------> 82 S <--------> 83 T <--------> 84U <--------> 85 V <--------> 86 W <--------> 87 X <--------> 88Y <--------> 89 Z <--------> 90 0 <--------> 48 1 <--------> 492 <--------> 503 <--------> 514 <--------> 525 <--------> 536 <--------> 547 <--------> 558 <--------> 569 <--------> 57数字键盘 1 <--------> 96 数字键盘 2 <--------> 97 数字键盘 3 <--------> 98数字键盘 4 <--------> 99 数字键盘 5 <--------> 100 数字键盘 6 <--------> 101数字键盘 7 <--------> 102 数字键盘 8 <--------> 103 数字键盘 9 <--------> 104数字键盘 0 <--------> 105乘号 <--------> 106 加号 <--------> 107 Enter <--------> 108 减号 <--------> 109⼩数点 <--------> 110 除号 <--------> 111F1 <--------> 112 F2 <--------> 113 F3 <--------> 114 F4 <--------> 115F5 <--------> 116 F6 <--------> 117 F7 <--------> 118 F8 <--------> 119F9 <--------> 120 F10 <--------> 121 F11 <--------> 122 F12 <--------> 123F13 <--------> 124 F14 <--------> 125 F15 <--------> 126Backspace <--------> 8Tab <--------> 9Clear <--------> 12Enter <--------> 13Shift <--------> 16Control <--------> 17Alt <--------> 18Caps Lock <--------> 20Esc <--------> 27空格键 <--------> 32Page Up <--------> 33Page Down <--------> 34End <--------> 35Home <--------> 36左箭头 <--------> 37向上箭头 <--------> 38右箭头 <--------> 39向下箭头 <--------> 40Insert <--------> 45Delete <--------> 46Help <--------> 47Num Lock <--------> 144; : <--------> 186= + <--------> 187- _ <--------> 189/ ? <--------> 191` ~ <--------> 192[ { <--------> 219| <--------> 220] } <--------> 221'' ' <--------> 222。

键盘键与虚拟键码对照表

键盘键与虚拟键码对照表

键盘键与虚拟键码对照表字母和数字键数字小键盘的键功能键其它键键键码键键码键键码键键码A650 96 F1 112 Backspace 8B661 97 F2 113Tab 9C67 2 98 F3 114Clear 12D683 99 F4 115Enter 13E69 4 100F5 116Shift16F70 5 101F6 117Control 17G71 6 102F7 118 Alt 18H72 7 103F8 119 Caps Lock 20I73 8 104F9 120Esc 27J74 9 105F10121Spacebar32K75 * 106F11122 Page Up33L76 + 107F12123 Page Down 34M77 Enter 108-- --End 35 N78 - 109-- -- Home36O79 . 110-- -- Left Arrow37 P80 / 111-- -- Up Arrow38Q81 -- ---- -- Right Arrow 39 R82 -- ---- -- Down Arrow 40 S83 -- ---- -- Insert 45 T84 -- ---- -- Delete 46 U85 -- ---- -- Help 47 V86 -- ---- -- Num Lock 144 W87X88Y89Z900481492503514525536547558569570x1 鼠标左键0x2 鼠标右键0x3 CANCEL 键0x4 鼠标中键0x8 BACKSPACE 键0x9 TAB 键0xC CLEAR 键0xD ENTER 键0x10 SHIFT 键0x11 CTRL 键0x12 MENU 键0x13 PAUSE 键0x14 CAPS LOCK 键0x1B ESC 键0x20 SPACEBAR 键0x21 PAGE UP 键0x22 PAGE DOWN 键0x23 END 键0x24 HOME 键0x25 LEFT ARROW 键0x26 UP ARROW 键0x27 RIGHT ARROW 键0x28 DOWN ARROW 键0x29 Select 键0x2A PRINT SCREEN 键0x2B EXECUTE 键0x2C SNAPSHOT 键0x2D Insert 键0x2E Delete 键0x2F HELP 键0x90 NUM LOCK 键A 至 Z 键与 A – Z 字母的 ASCII 码相同:值描述65 A 键66 B 键67 C 键68 D 键69 E 键70 F 键71 G 键72 H 键73 I 键74 J 键75 K 键76 L 键77 M 键78 N 键79 O 键80 P 键81 Q 键82 R 键83 S 键84 T 键85 U 键86 V 键87 W 键88 X 键89 Y 键90 Z 键0 至 9 键与数字 0 – 9 的 ASCII 码相同:48 0 键49 1 键50 2 键51 3 键52 4 键53 5 键54 6 键55 7 键56 8 键57 9 键下列常数代表数字键盘上的键:值描述0x60 0 键0x61 1 键0x62 2 键0x63 3 键0x64 4 键0x65 5 键0x66 6 键0x67 7 键0x68 8 键0x69 9 键0x6A MULTIPLICATION SIGN (*) 键0x6B PLUS SIGN (+) 键0x6C ENTER 键0x6D MINUS SIGN (–) 键0x6E DECIMAL POINT (.) 键0x6F DIVISION SIGN (/) 键下列常数代表功能键:0x70 F1 键0x71 F2 键0x72 F3 键0x73 F4 键0x74 F5 键0x75 F6 键0x76 F7 键0x77 F8 键0x78 F9 键0x79 F10 键0x7A F11 键0x7B F12 键0x7C F13 键0x7D F14 键0x7E F15 键0x7F F16 键0 None3 Cancel(Break)8 Back9 Tab13 Return16 ShiftKey17 ControlKey18 Menu19 Pause20 Capital(大小写)27 Escape32 Space33 PageUp34 Next(PageDonw)35 End36 Home37 Left38 Up39 Right40 Down0-9 48-5745 Insert46 Delete65->90 A->Z91 LWin93 Apps96 105 NumPad0- 106 Multiply * 107 Add+108109 Subtract-110 Decimal .111 Divide /112-123 F1-F12144 NumLock145 Scroll173 VolumeMute174 VolumeDown175 VolumeUp186 Oem1 ;187 Oemplus =188 Oemcomma ,189 OemMinus -190 OemPeriod .191 OemQuestion / 192 Oemtilde `219 OemOpenBrackets [ 220 Oem5 \221 Oem6 ]222 Oem7 '。

电脑键盘按键及其功能一览表 (1)

电脑键盘按键及其功能一览表 (1)

电脑键盘按键及其功能一览表按键符号按键名称按键功能操作方法Shift(↑)上档键(换档键) 控制输入双字符键的上位字符; 控制临时输入英文字母的切换大小写字符 按下Shift 不放,按下双字符键; 按下Shift 不放,同时按下字母键。

Caps Lock大小写开关键 (大小写锁定键)字母大小写输入的开关键按下,对应指示灯亮,输入大写字母;指示灯灭则输入字母小写Num Lock数字开关键 (数字锁定键)数字小键盘区,数字输入和编辑控制状态之间的开关键按下,对应指指灯亮,输入数字;指示灯灭则输入剪辑键A ~Z 字母键 对应大小写英文字母 同Shift ,Caps Lock 组合输入大小写字母 0~9 数字键 对应十进制数字符号通过主键盘上排或小键盘在数字输入模式输入 其他符号 符号键 对应除字母、数字外的各种符号下档键直接输入,上档键配合Shift 键输入 Ctrl(Control)控制键与其他键组合使用,能够完成一些特定的控制功能按下Ctrl 键不放,再按下其他键Alt(Alternative)转换键与其他键合用时产生一种转换状态;Alt 与数字小键盘组合输入按下A1t 不放,再按下其他键;按下A1t 不放,在数字小键盘数字状态下输入Space空格键(空白键) 输入空格直接按键Enter回车键启动执行命令或产生换行在主键盘或小键盘处直接按键 Backspace(←)退格键光标向左退回一个字符位,同时删掉位置上原有字符直接按键Tab(Table)制表键(表格键)控制光标右向跳格或左向跳格 直接按键右向跳格; 按下Shift 后,按键左向跳格Windows 键 快速打开Windows 的开始菜单或同其他键组合成Windows 系统的快捷键直接按键或者在按下Windows 键不放开,按下组合键应用程序键快速启动操作系统或应用程序中的快捷菜单或其他菜单直接按键,弹出快捷菜单Ins(Insert)插入/改写健在编辑文本时,切换编辑模式。

104键键盘按键码对照

104键键盘按键码对照

104键键盘按键码对照第一篇:104键键盘按键码对照104键键盘按键码对照★主键盘区A → 65B → 66C → 67D → 68E → 69F → 70G → 71H →72 I → 73 J → 74 K → 75 L → 76 M → 77 N → 78 O → 79 P → 80 Q → 81 R → 82 S → 83 T → 84U → 85 V → 86 W → 87 X → 88 Y → 89 Z → 900)→ 48 1!→ 49 2 @ → 50 3 # → 51 4 $ → 52 5 % → 53 6 ^ → 54 7 & → 55 8 * → 56 9(→ 57 Esc → 27 ` ~ → 192→ 109 + → 107 Enter → 13.→ 110★功能键区F1 → 112 F2 → 113 F3 → 114 F4 → 115 F5 → 116 F6 → 117 F7 → 118 F8 → 119 F9→ 120 F10 → 121 F11 → 122 F12 → 123★编辑键区Print Screen → 44 Scroll Lock → 145 Pause Break → 19 Insert → 45 Delete → 46 Home → 36 End → 35 Page Up → 33 Page Down → 34 左箭头→ 37 上箭头→ 38 右箭头→ 39 下箭头→ 40第二篇:104键键盘按键码对照104键键盘按键码对照★主键盘区A → 65B → 66C → 67D → 68E → 69F → 70G → 71H →72 I → 73 J → 74 K → 75 L → 76 M → 77 N → 78 O → 79 P → 80 Q → 81 R → 82 S → 83 T → 84 U → 85 V → 86 W → 87 X → 88 Y → 89 Z → 900)→ 48 1!→ 49 2 @ → 50 3 # → 51 4 $ → 52 5 % → 53 6 ^ → 54 7 & → 55 8 * → 56 9(→ 57 Esc → 27 ` ~ → 192→ 109 + → 107 Enter → 13.→ 110★功能键区F1 → 112 F2 → 113 F3 → 114 F4 → 115 F5 → 116 F6 → 117 F7 → 118 F8 → 119 F9 → 120 F10 → 121 F11 → 122 F12 → 123★编辑键区Print Screen → 44 Scroll Lock → 145 Pause Break → 19 Insert → 45 Delete → 46 Home → 36 End → 35 Page Up → 33 Page Down → 34 左箭头→ 37 上箭头→ 38 右箭头→ 39 下箭头→ 40字母和数字键的键码值(keyCode)按键 A B C D E F G H I数字键盘上的键的键码值(keyCode)按键 0 1 2 3 4 5 6 7键码 96 97 98 99 100 101 102 103 按键 8 9 * + Enter-./键码 104 105 106 107 108 109 110 111功能键键码值(keyCode)按键 F1 F2 F3 F4 F5 F6键码 112 113 114 115 116 117按键 F7 F8 F9 F10 F11 F12键码 118 119 120 121 122 123 键码 65 66 67 68 69 70 71 72 73 按键 J K L M N O P Q R键码 74 75 76 77 78 79 80 81 82按键 S T U V W X Y Z 0键码 83 84 85 86 87 88 89 90 48按键 1 2 3 4 5 6 7 8 9键码 49 50 51 52 53 54 55 56 57控制键键码值(keyCode)按键键码按键键码按键 Right Arrow键码按键键码BackSpace 8 Esc 27 39-_ 189 Tab Clear 9 12Spacebar 32 Page Up Page Down End Home Left ArrowDw Arrow 40 Insert.> /?190 191 Enter 13 34 Delete 46 `~ 192 Shift Control 16 1736Num Lock 144;:186[{ |219 220 Alt 18 37 =+ 187 ]} 221 Cape Lock 20 Up Arrow 38 ,< 188 '" 222 多媒体键码值(keyCode)按键音量加音量减停止静音浏览器邮件搜索键码 175 174 179 173 172 180 170 按键键码按键键码按键键码收藏171第三篇:键盘按键值对照常用的键盘按键值--------第一排F键和主键盘上键---------F1-F12键:值从112-123。

键盘键和键盘键控制值一览表

键盘键和键盘键控制值一览表

键盘键和键盘键控制值一览表键盘键和键盘键控制值一览表(键盘按键对应代码表)适合EXT keycode的查询A <--------> 65B <--------> 66C <--------> 67D <--------> 68E <--------> 69F <--------> 70G <--------> 71H <--------> 72I <--------> 73J <--------> 74K <--------> 75L <--------> 76M <--------> 77N <--------> 78O <--------> 79P <--------> 80Q <--------> 81R <--------> 82S <--------> 83T <--------> 84U <--------> 85V <--------> 86W <--------> 87X <--------> 88Y <--------> 89Z <--------> 900 <--------> 481 <--------> 492 <--------> 503 <--------> 514 <--------> 525 <--------> 536 <--------> 547 <--------> 558 <--------> 569 <--------> 57数字键盘 1 <--------> 96 数字键盘 2 <--------> 97 数字键盘 3 <--------> 98 数字键盘 4 <--------> 99 数字键盘 5 <--------> 100 数字键盘 6 <--------> 101 数字键盘 7 <--------> 102 数字键盘 8 <--------> 103 数字键盘 9 <--------> 104 数字键盘 0 <--------> 105 乘号 <--------> 106加号 <--------> 107 Enter <--------> 108减号 <--------> 109小数点 <--------> 110除号 <--------> 111F1 <--------> 112F2 <--------> 113F3 <--------> 114F5 <--------> 116F6 <--------> 117F7 <--------> 118F8 <--------> 119F9 <--------> 120F10 <--------> 121F11 <--------> 122F12 <--------> 123F13 <--------> 124F14 <--------> 125F15 <--------> 126 Backspace <--------> 8 Tab <--------> 9Clear <--------> 12 Enter <--------> 13 Shift <--------> 16 Control <--------> 17Alt <--------> 18Caps Lock <--------> 20 Esc <--------> 27空格键 <--------> 32 Page Up <--------> 33 Page Down <--------> 34 End <--------> 35 Home <--------> 36左箭头 <--------> 37向上箭头 <--------> 38 右箭头 <--------> 39向下箭头 <--------> 40Delete <--------> 46 Help <--------> 47 Num Lock <--------> 144 ; : <--------> 186= + <--------> 187- _ <--------> 189/ ? <--------> 191` ~ <--------> 192[ { <--------> 219| <--------> 220] } <--------> 221'' ' <--------> 222。

键盘键值对应表

键盘键值对应表

键盘键值对应表在写与键盘交互的程序时候,总是想键盘上的键值是多少,⼜想不起来。

刚好找到了键盘键值对应表,这⾥先记录下来。

键盘键值运⽤的地⽅有很多,这⾥列⼏个运⽤键盘键值的地⽅:1.判断⽤户按下的键是哪个,⽐如制作打字练习程序2.判断⽅向按键,⽐如游戏⾥控制⽅向A ⾄ Z 键与 A – Z 字母的相同:值描述 65 A 键 66 B 键 67 C 键 68 D 键 69 E 键 70 F 键 71 G 键 72 H 键 73 I 键 74 J 键 75 K 键 76 L 键 77 M 键 78 N 键 79 O 键 80 P 键 81 Q 键 82 R 键 83 S 键 84 T 键 85 U 键 86 V 键 87 W 键 88 X 键 89 Y 键 90 Z 键0 ⾄ 9 键与数字 0 – 9 的相同: 值描述 48 0 键 49 1 键 50 2 键 51 3 键 52 4 键 53 5 键 54 6 键 55 7 键 56 8 键 57 9 键下列常数代表功能键:值描述 0x70 F1 键 0x71 F2 键 0x72 F3 键 0x73 F4 键 0x74 F5 键 0x75 F6 键 0x76 F7 键 0x77 F8 键 0x78 F9 键 0x79 F10 键 0x7A F11 键 0x7B F12 键 0x7C F13 键 0x7D F14 键 0x7E F15 键 0x7F F16 键键盘常⽤ASCII码对应宏定义宏定义部份在windows.h头⽂件中可以找到,这样定义编程代码会更有阅读性。

⽐如 if ( c == VK_ESCAPE )。

判断输⼊的c是不是esc键ESC键 VK_ESCAPE (27)回车键 VK_RETURN (13)TAB键: VK_TAB (9)Caps Lock键: VK_CAPITAL (20) Shift键: VK_SHIFT ($10)Ctrl键: VK_CONTROL (17)Alt键: VK_MENU (18)空格键: VK_SPACE ($20/32)退格键: VK_BACK (8)左徽标键: VK_LWIN (91)右徽标键: VK_RWIN (92)⿏标右键快捷键:VK_APPS (93) Insert键: VK_INSERT (45) Home键: VK_HOME (36) Page Up: VK_PRIOR (33) PageDown: VK_NEXT (34) End键: VK_END (35) Delete键: VK_DELETE (46)⽅向键(←): VK_LEFT (37)⽅向键(↑): VK_UP (38)⽅向键(→): VK_RIGHT (39)⽅向键(↓): VK_DOWN (40)F1键: VK_F1 (112)F2键: VK_F2 (113)F3键: VK_F3 (114)F4键: VK_F4 (115)F5键: VK_F5 (116)F6键: VK_F6 (117)F7键: VK_F7 (118)F8键: VK_F8 (119)F9键: VK_F9 (120)F10键: VK_F10 (121)F11键: VK_F11 (122)F12键: VK_F12 (123)Num Lock键: VK_NUMLOCK (144)⼩键盘0: VK_NUMPAD0 (96)⼩键盘1: VK_NUMPAD1 (97)⼩键盘2: VK_NUMPAD2 (98)⼩键盘3: VK_NUMPAD3 (99)⼩键盘4: VK_NUMPAD4 (100)⼩键盘5: VK_NUMPAD5 (101)⼩键盘6: VK_NUMPAD6 (102)⼩键盘7: VK_NUMPAD7 (103)⼩键盘8: VK_NUMPAD8 (104)⼩键盘9: VK_NUMPAD9 (105)⼩键盘.: VK_DECIMAL (110)⼩键盘*: VK_MULTIPLY (106)⼩键盘+: VK_ADD (107)⼩键盘-: VK_SUBTRACT (109)⼩键盘/: VK_DIVIDE (111)Pause Break键: VK_PAUSE (19) Scroll Lock键: VK_SCROLL (145) 。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

67
103 数字键7键
68
104 数字键8键
69
105 数字键9键
VK_MULTIPLY VK_ADD VK_SEPARATO R VK_SUBTRACT VK_DECIMAL VK_DIVIDE VK_F1 VK_F2 VK_F3 VK_F4 VK_F5 VK_F6 VK_F7 VK_F8 VK_F9 VK_F10 VK_F11 VK_F12 VK_NUMLOCK VK_SCROLL
O 79 . 110 -- Left Arrow 37 P 80 / 111 -- Up Arrow 38 Q 81 -- -- Right Arrow 39 R 82 -- -- Down Arrow 40 S 83 -- -- Insert 45
字母和数 字键 数字小键 盘的键 功能键 其它键 键 键码 键 键码 键 键码 键 键码 A 65 0 96 F1 112 Backspac e 8 B 66 1 97 F2 113 Tab 9 C 67 2 98 F3 114 Clear 12 D 68 3 99 F4 115 Enter 13
73
115 F4键
74
116 F5键
75
117 F6键
76
118 F7键
77
119 F8键
78
120 F9键
79
121 F10键
7A
122 F11键
7B
123 F12键
90
144 Num Lock 键
91
145 Scroll Lock键
91 左win键
92 右win键
93
右Ctrl左边键,点击相当于 点击鼠标右键,会弹出快捷
附:更详细的键值表:
十六进制值 十进制值
常数名称
对应按键
VK_LBUTTON
1
1
鼠标的左键
VK_RBUTTON VK-CANCEL VK_MBUTTON VK_BACK
2
2
鼠标的右键
3
3
Ctrl+Break(通常不需要处 理)
4
4
鼠标的中键(三按键鼠标)
8
8
Backspace键
VK_TAB VK_CLEAR VK_RETURN
EXECUTE键
2C
44
Print Screen键(抓屏)
2D
45 Ins键(Num Lock关闭时的数
字键盘0)
2E
46 Del键(Num Lock关闭时的数
字键盘.)
2F
47
Help键
30
48
0键
31
49
1键
VK_2
VK_3
VK_4
VK_5
VK_6 VK_7 VK_8 VK_9 VK_A VK_B VK_C VK_D VK_E VK_F VK_G VK_H VK_I VK_J VK_K VK_L VK_M VK_N VK_O VK_P VK_Q VK_R VK_S VK_T VK_U VK_V VK_W VK_X VK_Y VK_Z VK_NUMPAD0 VK_NUMPAD1 VK_NUMPAD2 VK_NUMPAD3 VK_NUMPAD4 VK_NUMPAD5 VK_NUMPAD6 VK_NUMPAD7 VK_NUMPAD8 VK_NUMPAD9
T 84 -- -- Delete 46 U 85 -- -- Help 47 V 86 -- -- Num Lock 144 W 87 X 88 Y 89 Z 90 0 48 1 49 2 50 3 51 4 52
5 53 6 54 7 55 8 56 9 57
79 O键
50
80 P键
51
81 Q键
52
82 R键
53
83 S键
54
84 T键
55
85 U键
56
86 V键
57
87 W键
58
88 X键
59
89 Y键
5A
90 Z键
60
96 数字键0键

97 数字键1键
62
98 数字键2键
62
99 数字键3键
64
100 数字键4键
65
101 数字键5键
66
102 数字键6键
VK_RIGHT
27
39
RIGHT ARROW键(→)
VK_DOWN VK_Select VK_PRINT VK_EXECUTE VK_SNAPSHOT VK_Insert VK_Delete VK_HELP VK_0 VK_1
28
40
DOWN ARROW键(↓)
29
41
Select键
2A
42
2B
43
32
50
2键
33
51
3键
34
52
4键
35
53
5键
36
54
6键
37
55 7键
38
56 8键
39
57 9键
41
65 A键
42
66 B键
43
67 C键
44
68 D键
45
69 E键
46
70 F键
47
71 G键
48
72 H键
49
73 I键
4A
74 J键
4B
75 K键
4C
76 L键
4D
77 M键
4E
78 N键
4F
J 74 9 105 F10 121 Spacebar 32 K 75 * 106 F11 122 Page Up 33 L 76 + 107 F12 123 Page Down 34 M 77 Enter 108 -- End 35 N 78 109 -- Home 36
186 ;(分号)
187 =键
188 ,键(逗号)
189 -键(减号)
190 .键(句号)
191 /键
192 `键(Esc下面)
219 [键
220 \键
221 ]键
222 ‘键(引号)
键盘键与虚拟键码对照表
E 69 4 100 F5 116 Shift 16 F 70 5 101 F6 117 Control 17 G 71 6 102 F7 118 Alt 18 H 72 7 103 F8 119 Caps Lock 20 I 73 8 104 F9 120 Esc 27
1B
27
Ese键
VK_SPACE
20
32
Spacebar键
VK_PRIOR VK_NEXT
21
33
Page Up键
22
34
Page Domw键
VK_END
23
35
End键
VK_HOME VK_LEFT
24
36
Home键
25
37
LEFT ARROW 键(←)
VK_UP
26
38
UP ARROW键(↑)
上面没有提 到的:(都 在大键盘) VK_LWIN VK_RWIN
VK_APPS
6A
106 数字键盘上的*键
6B
107 数字键盘上的+键
6C
108 Separator键
6D
109 数字键盘上的-键
6E
110 数字键盘上的.键
6F
111 数字键盘上的/键
70
112 F1键
71
113 F2键
72
114 F3键
9
9
Tab键
0C
12
Clear键(Num Lock关闭时 的数字键盘5)
0D
13
Enter键
VK_SHIFT
10
16
Shift键
VK_CONTROL
11
17
Ctrl键
VK_MENU VK_PAUSE
12
18
Alt键
13
19
Pause键
VK_CAPITAL
14
20
Caps Lock键
VK_ESCAPE
相关文档
最新文档