键盘键码一览表
键盘按键的各种编码对照表(全)
键盘按键的各种编码对照表本附录中的各表列举了键盘按键扫描码和其ASCII码之间的对照关系,表中数据都是十六进制形式。
在用中断16H的0号功能时,当按下任意一个键或组合键时,寄存器AH和AL分别保存着该按键的扫描码和ASCII码。
表1、ASCII码的编码方案高位000001010011100101110111低位0000NUL DEL SP0@P`p0001SOH DC1!1A Q a q0010STX DC2“2B R b r0011ETX DC3#3C S c s0100EOT DC4$4D T d t0101ENQ NAK%5E U e u0110ACK SYN&6F V f v0111BEL ETB‘7G W g w1000BS CAN(8H X h x1001HT EM)9I Y i y1010LF SUB*:J Z j z1011VT ESC+;K[k{1100FF FS<L\l|1101CR GS-=M]m}1110SO RS.>N^n~1111SI US/?O_o Del表2、字母和空格按键的编码表单 键SHIFT CTRL ALT 按 键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码a and A1E611E411E011E00b and B3062304230023000c and C2E632E432E032E00d and D2064204420042000e and E1265124512051200f and F2166214621062100g and G2267224722072200h and H2368234823082300i and I1769174917091700j an1 J246A244A240A2400 k and K256B254B250B2500 l and L266C264C260C2600m and M326D324D320D3200 n and N316E314E310E3100 o and O186F184F180F1800 p and P1970195019101900 q and Q1071105110111000 r and R1372135213121300 s and S1F731F531F131F00 t and T1474145414141400 u and U1675165516151600 v and V2F762F562F162F00w and W1177115711171100 x and X2D782D582D182D00 y and Y1579155915191500 z and Z2C7A2C5A2C1A2C00 SpaceBar3920392039203920表3、功能键的编码表单 键SHIFT CTRL ALT按 键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码F13B0054005E006800 F23C0055005F006900 F33D00560060006A00 F43E00570061006B00 F53F00580062006C00 F64000590063006D00 F741005A0064006E00 F842005B0065006F00 F943005C0066007000 F1044005D0067007100 F118500870089008B00 F12860088008A008C00 表4、数字键盘的编码表单 键SHIFT CTRL ALT 按 键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码Ins & 0 52 00 52 30 92 00End & 14F004F3175000001↓& 25000503291000002 PgDn & 35100513376000003←& 44B004B3473000004 54C004C358F000005→& 64D004D3674000006 Home & 74700473777000007↑& 8480048388D000008 PgUp & 94900493984000009 +4E2B4E2B90004E00-4A2D4A2D8E004A00 Del & '.'53 00 53 2E 93 00*372A372A96003700表5、第一排数字键盘的编码表单 键SHIFT CTRL ALT 按 键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码` and ~2960297E29001 and !023*********2 and @03320340030079003 and #043304237A004 and $053405247B005 and %063506257C006 and ^0736075E071E7D007 and &083708267E008 and *0938092A7F009 and (0A390A3880000 and )0B300B298100- and _0C2D0C5F0C1F8200= and +0D3D0D2B8300表6、操作按键的编码表单 键SHIFT CTRL ALT 按 键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码Esc011B011B011B0100 Backspace0E080E080E7F0E00 Tab0F090F009400A500 Enter1C0D1C0D1C0A1C00表7、标号按键的编码表单 键SHIFT CTRL ALT按 键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码[ and {1A5B1A7B1A1B1A00] and }1B5D1B7D1B1D1B00; and :273B273A27' and "2827282228\ and |2b5C2b7C2B1C2b, and <332C333C33. and >342E343E34/ and ?352F353F35表8、附加按键的编码表单 键SHIFT CTRL ALT 按 键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码Slash(/)E02F E02F9500A400 Enter E00D E00D E00A A600 Home47E047E077E09700 End4F E04F E075E09F00 PageUp49E049E084E09900 PageDown51E051E076E0A100 DnArrow50E050E091E0A000 LeftArrow4B E04B E073E09B00 RightArrow4D E04D E074E09D00 UpArrow48E048E08D E09800 Ins52E052E092E0A200 Del53E053E093E0A300表9、其它按键的扫描码当这些键被按下时,BIOS并没有把它们的扫描码输入键盘缓冲区。
键盘代码表
小键盘+:VK_ADD (107
小键盘/:VK_DIVIDE (111)
Pause Break键:VK_PAUSE (19)
Scroll Lock键:VK_SCROLL (145)
设备控制1
00010010
18
12
DC2 (device control 2)
设备控制2
00010011
19
13
DC3 (device control 3)
设备控制3
00010100
20
14
DC4 (device control 4)
设备控制4
00010101
21
15
NAK (negative acknowledge)
135
5d
93
]
36
1e
30
re
136
5e
94
^
37
1f
31
us
137
5f
95
_
40
20
32
sp
140
60
96
'
41
21
33
!
141
61
97
a
42
22
34
"
142
62
98
b
43
23
35
#
143
63
99
c
44
24
36
$
144
64
100
d
45
25
37
%
145
65
101
键盘和常用ASCII码
HT横向列表
DC4设备控制4
US单元分隔符
LF换行
NAK否定
DEL删除
键盘常用ASCII码
ESC键VK_ESCAPE (27)
回车键:VK_RETURN (13)
TAB键:VK_TAB (9)
Caps Lock键:VK_CAPITAL (20)
Shift键:VK_SHIFT ($10)
F10键:VK_F10 (121)
F11键:VK_F11 (122)
F12键:VK_F12 (123)
Num Lock键:VK_NUMLOCK (144)
小键盘0:VK_NUMPAD0 (96)
小键盘1:VK_NUMPAD0 (97)
小键盘2:VK_NUMPAD0 (98)
小键盘3:VK_NUMPAD0 (99)
Ctrl键:VK_CONTROL (17)
Alt键:VK_MENU (18)
空格键:VK_SPACE ($20/32)
退格键:VK_BACK (8)
左徽标键:VK_LWIN (91)
右徽标键:VK_LWIN (92)
鼠标右键快捷键:VK_APPS (93)
Insert键:VK_INSERT (45)
VT垂直制表
SYN空转同步
SOH标题开始
FF走纸控制
ETB信息组传送结束
STX正文开始
CR回车
CAN作废
ETX正文结束
SO移位输出
EM纸尽
EOY传输结束
SI移位输入
SUB换置
ENQ询问字符
DLE空格
ESC换码
ACK承认
DC1设备控制1
FS文字分隔符
BEL报警
ASCII码表和键盘键码表(完整珍藏版)
ASCII码表和键盘键码表(完整珍藏版)表一:ASCII 码表(完整版)ASCII值字符ASCII值字符ASCII值字符ASCII值字符0NUT32(space)64@96、1SOH33!65A97a 2STX34”66B98b 3ETX35#67C99c4EOT36$68D100d 5ENQ37%69E101e6ACK38&70F102f7BEL39,71G103g 8BS40(72H104h 9HT41)73I105i 10LF42*74J106j 11VT43+75K107k 12FF44,76L108l 13CR45-77M109m 14SO46.78N110n 15SI47/79O111o 16DLE48080P112p 17DCI49181Q113q 18DC250282R114r 19DC351383X115s 20DC452484T116t 21NAK53585U117u 22SYN54686V118v 23TB55787W119w 24CAN56888X120x 25EM57989Y121y 26SUB58:90Z122z 27ESC59;91[123{ 28FS60<92/124| 29GS61=93]125} 30RS62>94^126~ 31US63? 95—127DEL 注:特殊控制字符所代表含义NUL 空VT 垂直制表SYN 空转同步HT 横向列表SOH 标题开始FF 走纸控制ETB 信息组传送结束LF 换行STX 正文开始CR 回车CAN 作废GS 组分隔符ETX 正文结束SO 移位输出EM 纸尽NAK 否定EOY 传输结束SI 移位输入SUB 换置US 单元分隔符ENQ 询问字符DLE 空格ESC 换码DEL 删除ACK 承认BS 退一格FS 文字分隔符RS 记录分隔符DC1 设备控制1DC2 设备控制2DC3 设备控制3DC4 设备控制4 BEL 报警表二:104键盘码表(完整版)控制键常数值健描述常数值健描述vbKeyLButton 1 鼠标左键vbKeyPageDown 34 PageDown 键vbKeyRButton 2 鼠标右键vbKeyEnd 35 End键vbKeyCancel 3 Cancel 键vbKeyHome 36Home 键vbKeyMButton 4 鼠标中键vbKeyLeft 37 左方向键vbKeyBack 8 Backspace健vbKeyUp 38 上方向键vbKeyTab 9 Tab 键vbKeyRight 39 右方向键vbKeyClear 12 Clear 键vbKeyDown 40 下方向键vbKeyReturn 13 Enter 键vbKeySelect 41 Select 键vbKeyShift 16 Shift键vbKeyPrint 42 Print Screen键vbKeyControl 17 Ctrl 键vbKeyExecute 43 Execute 键vbKeyMenu 18 菜单键vbKeySnapshot 44 Snap Shot键vbKeyPause 19 Pause 键vbKeyInser 45 Ins 键vbKeyCapital 20 Caps Lock 键vbKeyDelete 46 Del 键vbKeyEscape 27 Esc 键vbKeyHelp 47 Help 键vbKeySpace 32 Spacebar 键vbKeyNumlock 144 Num Lock 键vbKeyPageUp 33 Page Up字母按健字母区数字键常数(vbKeyA ~ vbKeyZ) <==>键码(65 ~ 90) <==>字母(A ~ Z)健可对照ASCII表常数(vbKey0 ~ vbKey9 ) <==>键码(48 ~ 57) <==>数字(0 ~ 9)健可对照ASCII表数字小键盘区按键F功能健常数值健描述常数值健描述vbKeyNumpad0 96 Num 0键vbKeyF1 112 F1键vbKeyNumpad1 97 Num 1键vbKeyF2 113 F2键vbKeyNumpad2 98 Num 2键vbKeyF3 114 F3键vbKeyNumpad3 99 Num 3键vbKeyF4 115 F4键vbKeyNumpad4 100 Num 4键vbKeyF5 116 F5键vbKeyNumpad5 101 Num 5键vbKeyF6 117 F6键vbKeyNumpad6 102 Num 6键vbKeyF7 118 F7键vbKeyNumpad7 103 Num 7键vbKeyF8 119 F8键vbKeyNumpad8 104 Num 8键vbKeyF9 120 F9键vbKeyNumpad9 105 Num 9键vbKeyF10 121 F10键vbKeyMultiply 106 (*) 键vbKeyF11 122 F11键vbKeyAdd 107 (+) 键vbKeyF12 123 F12键vbKeySeparator 108 Enter健vbKeyF13 124 F13键vbKeySubtract 109 (-) 键vbKeyF14 125 F14键vbKeyDecimal 110 (.) 键vbKeyF15 126 F15键vbKeyDivide 111 (/) 键vbKeyF16 127 F16键3、通过活动,使学生养成博览群书的好习惯。
ASCII码表和键盘键码表(完整珍藏版)
表一: ASCII码表 (完整版 )ASCII 值字符ASCII 值字符ASCII 值字符ASCII 值字符0NUT32(space)64@96、1SOH33!65A97a 2STX34”66B98b 3ETX35#67C99c 4EOT36$68D100d 5ENQ37%69E101e 6ACK38&70F102f7BEL39,71G103g 8BS40(72H104h 9HT41)73I105i 10LF42*74J106j11VT43+75K107k 12FF44,76L108l 13CR45-77M109m 14SO46.78N110n 15SI47/79O111o 16DLE48080P112p 17DCI49181Q113q 18DC250282R114r 19DC351383X115s 20DC452484T116t 21NAK53585U117u 22SYN54686V118v 23TB55787W119w 24CAN56888X120x 25EM57989Y121y 26SUB58:90Z122z 27ESC59;91[123{ 28FS60<92/124| 29GS61=93]125} 30RS62>94^126~ 31US63?95—127DEL注:特殊控制字符所代表含义NUL 空VT垂直制表SYN空转同步HT横向列表SOH 标题开始FF 走纸控制ETB信息组传送结束LF换行STX 正文开始CR 回车CAN 作废GS组分隔符ETX正文结束SO 移位输出EM纸尽NAK否定EOY传输结束SI移位输入SUB换置US单元分隔符ENQ询问字符DLE空格ESC换码DEL删除ACK承认BS 退一格FS文字分隔符RS记录分隔符DC1 设备控制 1DC2 设备控制 2DC3 设备控制 3DC4 设备控制 4BEL 报警表二: 104键盘码表 (完整版 )控制键常数值健描述常数值健描述vbKeyLButton1鼠标左键vbKeyPageDown34PageDown键vbKeyRButton2鼠标右键vbKeyEnd35End键vbKeyCancel3Cancel键vbKeyHome36Home键vbKeyMButton4鼠标中键vbKeyLeft37左方向键vbKeyBack8Backspace健vbKeyUp38上方向键vbKeyTab9Tab键vbKeyRight39右方向键vbKeyClear12Clear键vbKeyDown40下方向键vbKeyReturn13Enter键vbKeySelect41Select键vbKeyShift16Shift键vbKeyPrint42Print Screen键vbKeyControl17Ctrl键vbKeyExecute43Execute键vbKeyMenu18菜单键vbKeySnapshot44Snap Shot键vbKeyPause19Pause键vbKeyInser45Ins键vbKeyCapital20Caps Lock键vbKeyDelete46Del键vbKeyEscape27Esc键vbKeyHelp47Help键vbKeySpace32Spacebar键vbKeyNumlock144Num Lock键vbKeyPageUp33Page Up字母按健字母区数字键常数 (vbKeyA ~ vbKeyZ)<==> 键码 (65 ~ 90)<==> 字母 (A ~ Z) 健可对照 ASCII表常数 (vbKey0 ~ vbKey9 )<==> 键码 (48 ~ 57)<==> 数字 (0 ~ 9)健可对照 ASCII表数字小键盘区按键 F 功能健常数值健描述常数值健描述vbKeyNumpad096Num 0键vbKeyF1112F1键vbKeyNumpad197Num 1键vbKeyF2113F2键vbKeyNumpad298Num 2键vbKeyF3114F3键vbKeyNumpad399Num 3键vbKeyF4115F4键vbKeyNumpad4100Num 4键vbKeyF5116F5键vbKeyNumpad5101Num 5键vbKeyF6117F6键vbKeyNumpad6102Num 6键vbKeyF7118F7键vbKeyNumpad7103Num 7键vbKeyF8119F8键vbKeyNumpad8104Num 8键vbKeyF9120F9键vbKeyNumpad9105Num 9键vbKeyF10121F10 键vbKeyMultiply106(*)键vbKeyF11122F11 键vbKeyAdd107(+)键vbKeyF12123F12 键vbKeySeparator108Enter健vbKeyF13124F13 键vbKeySubtract109(-)键vbKeyF14125F14 键vbKeyDecimal110(.)键vbKeyF15126F15键vbKeyDivide111(/)键vbKeyF16127F16键庄子云:“人生天地之间,若白驹过隙,忽然而已。
键盘键与虚拟键码对照表
键盘键与虚拟键码对照表键盘键与虚拟键码对照表字母和数字键数字小键盘的键功能键其它键键键码键键码键键码键键码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 34 M77 Enter 108-- --End 35 N78 - 109-- -- Home36 O79 . 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 '。
键盘键码表
keycode 0 =keycode 1 =keycode 2 =keycode 3 =keycode 4 =keycode 5 =keycode 6 =keycode 7 =keycode 8 = BackSpace keycode 9 = Tab keycode 10 =keycode 11 =keycode 12 = Clear keycode 13 = Enter keycode 14 =keycode 15 =keycode 16 = Shift_L keycode 17 = Control_L keycode 18 = Alt_L keycode 19 = Pause keycode 20 = Caps_Lock keycode 21 =keycode 22 =keycode 23 =keycode 24 =keycode 25 =keycode 26 =keycode 27 = Esc Escape keycode 28 =keycode 29 =keycode 30 =keycode 31 =keycode 32 = Space keycode 33 = Page Up keycode 34 = Page Down keycode 35 = End keycode 36 = Home keycode 37 = Left Arrow keycode 38 = Up Arrow keycode 39 = Right Arrow keycode 40 = Down Arrow keycode 41 = Select keycode 42 = Print keycode 43 = Execute keycode 44 =keycode 45 = Insert keycode 46 = Delete keycode 47 = Help keycode 48 = 0 ) keycode 49 = 1 ! keycode 50 = 2 @ keycode 51 = 3 # keycode 52 = 4 $ keycode 53 = 5 % keycode 54 = 6 ^ keycode 55 = 7 & keycode 56 = 8 * keycode 57 = 9 ( keycode 58 =keycode 59 =keycode 60 = keycode 61 = keycode 62 = keycode 63 = keycode 64 = keycode 65 = a A keycode 66 = b B keycode 67 = c C keycode 68 = d D keycode 69 = e E keycode 70 = f F keycode 71 = g G keycode 72 = h H keycode 73 = i I keycode 74 = j J keycode 75 = k K keycode 76 = l L keycode 77 = m M keycode 78 = n N keycode 79 = o O keycode 80 = p P keycode 81 = q Q keycode 82 = r R keycode 83 = s S keycode 84 = t T keycode 85 = u U keycode 86 = v V keycode 87 = w W keycode 88 = x X keycode 89 = y Y keycode 90 = z Z keycode 91 = keycode 92 = keycode 93 = keycode 94 = keycode 95 = keycode 96 = KP_0 keycode 97 = KP_1 keycode 98 = KP_2 keycode 99 = KP_3 keycode 100 = KP_4 keycode 101 = KP_5 keycode 102 = KP_6 keycode 103 = KP_7keycode 104 = KP_8keycode 105 = KP_9keycode 106 = KP_* KP_Multiply keycode 107 = KP_+ KP_Add keycode 108 = KP_Enter KP_Separator keycode 109 = KP_- KP_Subtract keycode 110 = KP_. KP_Decimal keycode 111 = KP_/ KP_Divide keycode 112 = F1keycode 113 = F2keycode 114 = F3keycode 115 = F4keycode 116 = F5keycode 117 = F6keycode 118 = F7keycode 119 = F8keycode 120 = F9keycode 121 = F10keycode 122 = F11keycode 123 = F12keycode 124 = F13keycode 125 = F14keycode 126 = F15keycode 127 = F16keycode 128 = F17keycode 129 = F18keycode 130 = F19keycode 131 = F20keycode 132 = F21keycode 133 = F22keycode 134 = F23keycode 135 = F24keycode 136 = Num_Lockkeycode 137 = Scroll_Lockkeycode 138 =keycode 139 =keycode 140 =keycode 141 =keycode 142 =keycode 143 =keycode 144 =keycode 145 =keycode 146 =keycode 147 =keycode 149 = keycode 150 = keycode 151 = keycode 152 = keycode 153 = keycode 154 = keycode 155 = keycode 156 = keycode 157 = keycode 158 = keycode 159 = keycode 160 = keycode 161 = keycode 162 = keycode 163 = keycode 164 = keycode 165 = keycode 166 = keycode 167 = keycode 168 = keycode 169 = keycode 170 = keycode 171 = keycode 172 = keycode 173 = keycode 174 = keycode 175 = keycode 176 = keycode 177 = keycode 178 = keycode 179 = keycode 180 = keycode 181 = keycode 182 = keycode 183 = keycode 184 = keycode 185 = keycode 186 = keycode 187 = =+ keycode 188 = ,< keycode 189 = -_ keycode 190 = .> keycode 191 = /?keycode 193 =keycode 194 =keycode 195 =keycode 196 =keycode 197 =keycode 198 =keycode 199 =keycode 200 =keycode 201 =keycode 202 =keycode 203 =keycode 204 =keycode 205 =keycode 206 =keycode 207 =keycode 208 =keycode 209 =keycode 210 = plusminus hyphen macron keycode 211 =keycode 212 = copyright registeredkeycode 213 = guillemotleft guillemotright keycode 214 = masculine ordfemininekeycode 215 = ae AEkeycode 216 = cent yenkeycode 217 = questiondown exclamdown keycode 218 = onequarter onehalf threequarters keycode 219 = [{keycode 220 = \|keycode 221 = ]}keycode 222 = '"keycode 223 =keycode 224 =keycode 225 =keycode 226 =keycode 227 = multiply divisionkeycode 228 = acircumflex Acircumflex keycode 229 = ecircumflex Ecircumflex keycode 230 = icircumflex Icircumflexkeycode 231 = ocircumflex Ocircumflex keycode 232 = ucircumflex Ucircumflex keycode 233 = ntilde Ntildekeycode 234 = yacute Yacutekeycode 235 = oslash Oobliquekeycode 236 = aring Aringkeycode 237 = ccedilla Ccedillakeycode 238 = thorn THORNkeycode 239 = eth ETHkeycode 240 = diaeresis cedilla currencykeycode 241 = agrave Agrave atilde Atildekeycode 242 = egrave Egravekeycode 243 = igrave Igravekeycode 244 = ograve Ograve otilde Otildekeycode 245 = ugrave Ugravekeycode 246 = adiaeresis Adiaeresiskeycode 247 = ediaeresis Ediaeresiskeycode 248 = idiaeresis Idiaeresiskeycode 249 = odiaeresis Odiaeresiskeycode 250 = udiaeresis Udiaeresiskeycode 251 = ssharp question backslashkeycode 252 = asciicircum degreekeycode 253 = 3 sterlingkeycode 254 = Mode_switch使用示例:if ((window.event.ctrlKey)&&(window.event.keyCode==49))alert("您按下了CTRL+1键");从以上例子可以看出,shift、Control、Alt 在JS中也可用“window.event.shiftKey”、“window.event.ctrlKey”、“window.event.altKey” 代替。
键盘按键对应的十六进制编码
键盘按键对应的十六进制编码键盘按键对应的十六进制编码是一个固定的映射关系,用于表示每个按键在计算机中的唯一标识。
以下是一些常见的键盘按键及其对应的十六进制编码(也称为扫描码或虚拟键码):0x08:Backspace键(退格键)0x09:Tab键(制表键)0x0C:Clear键(数字键盘上的5,当Num Lock关闭时)0x0D:Enter键(回车键)0x10:Shift键(左或右Shift键)0x11:Ctrl键(左或右Ctrl键)0x12:Alt键(左或右Alt键)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键(打印键)0x2B:Execute键(执行键)0x2D:Insert键(插入键)或Num Lock关闭时的数字键盘00x2E:Delete键(删除键)或Num Lock关闭时的数字键盘.0x2F:Help键(帮助键)此外,字母、数字和特殊字符键(如A-Z、0-9、@、#等)的编码通常从0x30开始,每个键都有一个唯一的编码。
例如,0x41代表A键,0x42代表B键,依此类推。
需要注意的是,这些编码值可能会因不同的操作系统、编程语言和键盘布局而有所差异。
因此,在特定上下文中使用时,请确保查阅相关文档以获取准确的映射关系。
键盘值码表,键盘代码表,ASCII 码表,二进制、八进制、十六进制表,进制转换方法
键盘值码表,键盘代码表,ASCII码表,二进制、八进制、十六进制表,进制转换方法键盘值码表:键盘代码表:可在代码中的任何地方用下列常数代替实际值:(0x指16进制,delete键的ascii码值是0x2e,也即十进制的4646))常数:键值:描述vbKeyLButton0x1鼠标左键vbKeyRButton0x2鼠标右键vbKeyCancel0x3CANCEL键vbKeyMButton0x4鼠标中键vbKeyBack0x8BACKSPACE键vbKeyTab0x9TAB键vbKeyClear0xC CLEAR键vbKeyReturn0xD ENTER键vbKeyShift0x10SHIFT键vbKeyControl0x11CTRL键vbKeyMenu0x12MENU键vbKeyPause0x13PAUSE键vbKeyCapital0x14CAPS LOCK键vbKeyEscape0x1B ESC键vbKeySpace0x20SPACEBAR键vbKeyPageUp0x21PAGE UP键vbKeyPageDown0x22PAGE DOWN键vbKeyEnd0x23END键vbKeyHome0x24HOME键vbKeyLeft0x25LEFT ARROW键vbKeyUp0x26UP ARROW键vbKeyRight0x27RIGHT ARROW键vbKeyDown0x28DOWN ARROW键vbKeySelect0x29SELECT键vbKeyPrint0x2A PRINT SCREEN键vbKeyExecute0x2B EXECUTE键vbKeySnapshot0x2C SNAPSHOT键vbKeyInsert0x2D INSERT键vbKeyDelete0x2E DELETE键vbKeyHelp0x2F HELP键vbKeyNumlock0x90NUM LOCK键A至Z键与A–Z字母的ASCII码相同:vbKeyA65A键vbKeyB66B键vbKeyC67C键vbKeyD68D键vbKeyE69E键vbKeyF70F键vbKeyG71G键vbKeyH72H键vbKeyI73I键vbKeyJ74J键vbKeyK75K键vbKeyL76L键vbKeyM77M键vbKeyN78N键vbKeyO79O键vbKeyP80P键vbKeyQ81Q键vbKeyR82R键vbKeyS83S键vbKeyT84T键vbKeyU85U键vbKeyV86V键vbKeyW87W键vbKeyX88X键vbKeyY89Y键vbKeyZ90Z键0至9键与数字0–9的ASCII码相同:vbKeyNumpad00x600键vbKeyNumpad10x611键vbKeyNumpad20x622键vbKeyNumpad30x633键vbKeyNumpad40x644键vbKeyNumpad50x655键vbKeyNumpad60x666键vbKeyNumpad70x677键vbKeyNumpad80x688键vbKeyNumpad90x699键vbKeyMultiply0x6A MULTIPLICATION SIGN(*)键vbKeyAdd0x6B PLUS SIGN(+)键vbKeySeparator0x6C ENTER键vbKeySubtract0x6D MINUS SIGN(–)键vbKeyDecimal0x6E DECIMAL POINT(.)键vbKeyDivide0x6F DIVISION SIGN(/)键下列常数代表功能键:vbKeyF10x70F1键vbKeyF20x71F2键vbKeyF30x72F3键vbKeyF40x73F4键vbKeyF50x74F5键vbKeyF60x75F6键vbKeyF70x76F7键vbKeyF80x77F8键vbKeyF90x78F9键vbKeyF100x79F10键vbKeyF110x7A F11键vbKeyF120x7B F12键vbKeyF130x7C F13键vbKeyF140x7D F14键vbKeyF150x7E F15键vbKeyF160x7F F16键ASCII码表:ASCII值控制字符ASCII值控制字符ASCII值控制字符ASCII值控制字符0NUT32(space)64@96、1SOH33!65A97a2STX34”66B98b3ETX35#67C99c4EOT36$68D100d5ENQ37%69E101e6ACK38&70F102f7BEL39,71G103g8BS40(72H104h 9HT41)73I105i 10LF42*74J106j 11VT43+75K107k 12FF44,76L108l 13CR45-77M109m 14SO46.78N110n 15SI47/79O111o 16DLE48080P112p 17DCI49181Q113q 18DC250282R114r 19DC351383X115s 20DC452484T116t 21NAK53585U117u 22SYN54686V118v 23TB55787W119w 24CAN56888X120x 25EM57989Y121y 26SUB58:90Z122z 27ESC59;91[123{ 28FS60<92/124| 29GS61=93]125} 30RS62>94^126~ 31US63?95—127DEL NUL空VT垂直制表SYN空转同步SOH标题开始FF走纸控制ETB信息组传送结束STX正文开始CR回车CAN作废ETX正文结束SO移位输出EM纸尽EOY传输结束SI移位输入SUB换置ENQ询问字符DLE空格ESC换码ACK承认DC1设备控制1FS文字分隔符BEL报警DC2设备控制2GS组分隔符BS退一格DC3设备控制3RS记录分隔符HT横向列表DC4设备控制4US单元分隔符LF换行NAK否定DEL删除二进制、八进制、十六进制表:十进制二进制八进制十六进制00000B0Q0H10001B1Q1H20010B2Q2H30011B3Q3H40100B4Q4H50101B5Q5H60110B6Q6H70111B7Q7H81000B10Q8H91001B11Q9H101010B12Q AH111011B13Q BH121100B14Q CH131101B15Q DH141110B16Q EH151111B17Q FH其中,B是Binary的缩写,用来表示二进制;O是Octal的缩写,用来表示八进制(为了Decimal l 避免与“0”混淆,则写成Q);H是Hexadecimal的缩写,用来表示十六进制;D是Decima 的缩写,用来表示十进制。
键键盘按键码对照
Insert
45
/?
191
Enter
13
Page Down
34
Delete
46
`~
192
Shift
16
End
35
Num Lock
144
[{
219
Control
17
Home
36
。:
186
\|
220
Alt
18
Left Arrow
37
=+
187
]}
221
Cape Lock
20
Up Arrow
38
,<
188
Right Ctrl→163
Win→91
Alt→18
Letf Alt→164
Right Alt→165
空格键Space→32
Right Mouse→93
Enter→13
Macro→226
[ {→219
] }→221
。:→186
‘“→222
, <→188
. >→190
/ ?→191
★数字键盘区
数字键盘0→96
数字键盘1→97
数字键盘2→98
数字键盘3→99
数字键盘4→100
数字键盘5→101
数字键盘6→102
数字键盘7→103
数字键盘8→104
数字键盘9→105
Num Lock→144
/→111
*→106
-→109
+→107
Enter→13
.→110
★功能键区
F1→112
F2→113
F3→114
键盘代码大全(完整)
113
4b
75
K
14
0c
12
ff
114
4c
76
L
15
0d
13
er
115
4d
77
M
16
0e
14
so
116
4e
78
N
17
0f
15
si
117
4f
79
O
20
10
16
dle
120
50
80
P
21
11
17
dc1
121
51
81
Q
22
12
18
dc2
122
52
82
R
23
13
19
dc3
123
53
83
S
24
14
20
dc4
Bin
Dec
Hex
缩写/字符
解释
00000000
0
00
NUL(null)
空字符
00000001eadling)
标题开始
00000010
2
02
STX (start of text)
正文开始
00000011
3
03
ETX (end of text)
正文结束
00000100
方向键(↑): VK_UP (38)
方向键(→): VK_RIGHT (39)
方向键(↓): VK_DOWN (40)
F1键: VK_F1 (112)
F2键: VK_F2 (113)
F3键: VK_F3 (114)
104键键盘按键码对照
104键键盘按键码对照★主键盘区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` ~ →192- _ →189= + →187\ | →220←Back Space →8 Tab →9Caps Lock →20 Shift →16Left Shift →160 Right Shift →161 Ctrl →17Left Crtl →162 Right Ctrl →163 Win →91Alt →18Letf Alt →164 Right Alt →165空格键Space →32 Right Mouse →93 Enter →13 Macro →226[ { →219] } →221; : →186‘“→222, < →188. > →190/ ? →191★数字键盘区数字键盘0 →96 数字键盘1 →97 数字键盘2 →98 数字键盘3 →99 数字键盘4 →100 数字键盘5 →101 数字键盘6 →102 数字键盘7 →103 数字键盘8 →104 数字键盘9 →105 Num Lock →144 / →111- →109+ →107Enter →13. →110★功能键区F1 →112F2 →113F3 →114F4 →115F5 →116F6 →117F7 →118F8 →119F9 →120F10 →121F11 →122F12 →123★编辑键区Print Screen →44 Scroll Lock →145 Pause Break →19 Insert →45 Delete →46 Home →36End →35Page Up →33 Page Down →34 左箭头→37上箭头→38右箭头→39下箭头→40字母和数字键的键码值(keyCode)按键键码按键键码按键键码按键键码A 65 J 74 S 83 1 49B 66 K 75 T 84 2 50C 67 L 76 U 85 3 51D 68 M 77 V 86 4 52E 69 N 78 W 87 5 53F 70 O 79 X 88 6 54G 71 P 80 Y 89 7 55H 72 Q 81 Z 90 8 56I 73 R 82 0 48 9 57 数字键盘上的键的键码值(keyCode)功能键键码值(keyCode)按键键码按键键码按键键码按键键码0 96 8 104 F1 112 F7 1181 97 9 105 F2 113 F8 1192 98 * 106 F3 114 F9 1203 99 + 107 F4 115 F10 1214 100 Enter 108 F5 116 F11 1225 101 - 109 F6 117 F12 1236 102 . 1107 103 / 111控制键键码值(keyCode)按键键码按键键码按键键码按键键码BackSpace 8 Esc 27 RightArrow39 -_ 189Tab 9 Spacebar 32 Dw Arrow 40 .> 190 Clear 12 Page Up 33 Insert 45 /? 191Enter 13 PageDown34 Delete 46 `~ 192Shift 16 End 35 Num Lock 144 [{ 219 Control 17 Home 36 ;: 186 \| 220Alt 18 LeftArrow37 =+ 187 ]} 221Cape Lock 20 Up Arrow 38 ,< 188 '" 222 多媒体键码值(keyCode)按键键码按键键码按键键码按键键码音量加175音量减174停止179静音173浏览器172邮件180搜索170收藏171。
ASCII码表和键盘键码表及Java键码表
表一:ASCII 码表(完整版)ASCII值字符ASCII值字符ASCII值字符ASCII值字符0NUT32(space)64@96、1SOH33!65A97a 2STX34”66B98b 3ETX35#67C99c 4EOT36$68D100d 5ENQ37%69E101e 6ACK38&70F102f7BEL39,71G103g 8BS40(72H104h 9HT41)73I105i 10LF42*74J106j 11VT43+75K107k 12FF44,76L108l 13CR45-77M109m 14SO46.78N110n 15SI47/79O111o 16DLE48080P112p 17DCI49181Q113q 18DC250282R114r 19DC351383X115s 20DC452484T116t 21NAK53585U117u 22SYN54686V118v 23TB55787W119w 24CAN56888X120x 25EM57989Y121y 26SUB58:90Z122z 27ESC59;91[123{ 28FS60<92/124| 29GS61=93]125} 30RS62>94^126~ 31US63? 95—127DEL 注:特殊控制字符所代表含义NUL 空VT 垂直制表SYN 空转同步HT 横向列表SOH 标题开始FF 走纸控制ETB 信息组传送结束LF 换行STX 正文开始CR 回车CAN 作废GS 组分隔符ETX 正文结束SO 移位输出EM 纸尽NAK 否定EOY 传输结束SI 移位输入SUB 换置US 单元分隔符ENQ 询问字符DLE 空格ESC 换码DEL 删除ACK 承认BS 退一格FS 文字分隔符RS 记录分隔符DC1设备控制1DC2 设备控制2DC3 设备控制3DC4 设备控制4 BEL 报警表二:104键盘码表(完整版)控制键常数值健描述常数值健描述vbKeyLButton 1 鼠标左键vbKeyPageDown 34 PageDown键vbKeyRButton 2 鼠标右键vbKeyEnd 35 End键vbKeyCancel 3 Cancel键vbKeyHome 36 Home键vbKeyMButton 4 鼠标中键vbKeyLeft 37 左方向键vbKeyBack 8 Backspace健vbKeyUp 38 上方向键vbKeyTab 9 Tab键vbKeyRight 39 右方向键vbKeyClear 12 Clear键vbKeyDown 40 下方向键vbKeyReturn 13 Enter键vbKeySelect 41 Select键vbKeyShift 16 Shift键vbKeyPrint 42 Print Screen键vbKeyControl 17 Ctrl键vbKeyExecute 43 Execute键vbKeyMenu 18 菜单键vbKeySnapshot 44 Snap Shot键vbKeyPause 19 Pause键vbKeyInser 45 Ins键vbKeyCapital 20 Caps Lock 键vbKeyDelete 46 Del键vbKeyEscape 27 Esc键vbKeyHelp 47 Help键vbKeySpace 32 Spacebar键vbKeyNumlock 144 Num Lock 键vbKeyPageUp 33 Page Up字母按健字母区数字键常数(vbKeyA ~ vbKeyZ) <==>键码(65 ~ 90) <==>字母(A ~ Z)健可对照ASCII表常数(vbKey0 ~ vbKey9 ) <==>键码(48 ~ 57) <==>数字(0 ~ 9)健可对照ASCII表数字小键盘区按键F功能健常数值健描述常数值健描述vbKeyNumpad0 96 Num 0键vbKeyF1 112 F1键vbKeyNumpad1 97 Num 1键vbKeyF2 113 F2键vbKeyNumpad2 98 Num 2键vbKeyF3 114 F3键vbKeyNumpad3 99 Num 3键vbKeyF4 115 F4键vbKeyNumpad4 100 Num 4键vbKeyF5 116 F5键vbKeyNumpad5 101 Num 5键vbKeyF6 117 F6键vbKeyNumpad6 102 Num 6键vbKeyF7 118 F7键vbKeyNumpad7 103 Num 7键vbKeyF8 119 F8键vbKeyNumpad8 104 Num 8键vbKeyF9 120 F9键vbKeyNumpad9 105 Num 9键vbKeyF10 121 F10键vbKeyMultiply 106 (*) 键vbKeyF11 122 F11键vbKeyAdd 107 (+) 键vbKeyF12 123 F12键vbKeySeparator 108 Enter健vbKeyF13 124 F13键vbKeySubtract 109 (-) 键vbKeyF14 125 F14键vbKeyDecimal 110 (.) 键vbKeyF15 126 F15键vbKeyDivide 111 (/) 键vbKeyF16 127 F16键Java 键码表Virtual Key Code Corresponding keyVK_LBUTTON Left mouse buttonVK_RBUTTON Right mouse buttonVK_CANCEL Control+BreakVK_MBUTTON Middle mouse buttonVK_BACK Backspace keyVK_TAB Tab keyVK_CLEAR Clear keyVK_RETURN Enter keyVK_SHIFT Shift keyVK_CONTROL Ctrl keyVK_MENU Alt keyVK_PAUSE Pause keyVK_CAPITAL Caps Lock keyVK_KANA Used with IMEVK_HANGUL Used with IMEVK_JUNJA Used with IMEVK_FINAL Used with IMEVK_HANJA Used with IMEVK_KANJI Used with IMEVK_CONVERT Used with IMEVK_NONCONVERT Used with IMEVK_ACCEPT Used with IMEVK_MODECHANGE Used with IMEVK_ESCAPE Esc keyVK_SPACE Space barVK_PRIOR Page Up keyVK_NEXT Page Down keyVK_END End keyVK_HOME Home keyVK_LEFT Left Arrow keyVK_UP Up Arrow keyVK_RIGHT Right Arrow keyVK_DOWN Down Arrow keyVK_SELECT Select keyVK_PRINT Print key (keyboard-specific) VK_EXECUTE Execute keyVK_SNAPSHOT Print Screen keyVK_INSERT Insert keyVK_DELETE Delete keyVK_HELP Help keyVK_LWIN Left Windows key (Microsoft keyboard) VK_RWIN Right Windows key (Microsoft keyboard)VK_APPS Applications key (Microsoft keyboard)VK_NUMPAD0 0 key (numeric keypad)VK_NUMPAD1 1 key (numeric keypad)VK_NUMPAD2 2 key (numeric keypad)VK_NUMPAD3 3 key (numeric keypad)VK_NUMPAD4 4 key (numeric keypad)VK_NUMPAD5 5 key (numeric keypad)VK_NUMPAD6 6 key (numeric keypad)VK_NUMPAD7 7 key (numeric keypad)VK_NUMPAD8 8 key (numeric keypad)VK_NUMPAD9 9 key (numeric keypad)VK_MULTIPLY Multiply key (numeric keypad)VK_ADD Add key (numeric keypad)VK_SEPARA TOR Separator key (numeric keypad)VK_SUBTRACT Subtract key (numeric keypad)VK_DECIMAL Decimal key (numeric keypad)VK_DIVIDE Divide key (numeric keypad) VK_F1 F1 keyVK_F2 F2 keyVK_F3 F3 keyVK_F4 F4 keyVK_F5 F5 keyVK_F6 F6 keyVK_F7 F7 keyVK_F8 F8 keyVK_F9 F9 keyVK_F10 F10 keyVK_F11 F11 keyVK_F12 F12 keyVK_F13 F13 keyVK_F14 F14 keyVK_F15 F15 keyVK_F16 F16 keyVK_F17 F17 keyVK_F18 F18 keyVK_F19 F19 keyVK_F20 F20 keyVK_F21 F21 keyVK_F22 F22 keyVK_F23 F23 keyVK_F24 F24 keyVK_NUMLOCK Num Lock keyVK_SCROLL Scroll Lock keyVK_LSHIFT Left Shift key (only used with GetAsyncKeyState and GetKeyState)VK_RSHIFT Right Shift key (only used with GetAsyncKeyState and GetKeyState)VK_LCONTROL Left Ctrl key (only used with GetAsyncKeyState and GetKeyState)VK_RCONTROL Right Ctrl key (only used with GetAsyncKeyState and GetKeyState) VK_LMENU Left Alt key (only used with GetAsyncKeyState and GetKeyState)VK_RMENU Right Alt key (only used with GetAsyncKeyState and GetKeyState)VK_PROCESSKEY Process keyVK_A TTN Attn keyVK_CRSEL CrSel keyVK_EXSEL ExSel keyVK_EREOF Erase EOF keyVK_PLAY Play keyVK_ZOOM Zoom keyVK_NONAME Reserved for future useVK_PA1 PA1 keyVK_OEM_CLEAR Clear key。
键盘ASCII码值对照表
键盘ASCII码值对照表键盘ASCII码值对照表0x1 鼠标左键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 键====================================大小写字母的 ASCII 码相同:值描述65 A 键66 B 键67 C 键68 D 键69 E 键70 F 键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 键的 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 键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 键====================================ASCII 码对照表Char Dec Oct Hex | Char Dec Oct Hex | Char Dec Oct Hex |Char Dec Oct Hex-------------------------------------------------------------------------------------(nul) 0 0000 0x00 | (sp) 32 0040 0x20 | @ 64 0100 0x40 | ` 96 0140 0x60(soh) 1 0001 0x01 | ! 33 0041 0x21 | A 65 0101 0x41 | a 97 0141 0x610142 0x62(etx) 3 0003 0x03 | # 35 0043 0x23 | C 67 0103 0x43 | c 99 0143 0x63(eot) 4 0004 0x04 | $ 36 0044 0x24 | D 68 0104 0x44 | d 100 0144 0x64(enq) 5 0005 0x05 | % 37 0045 0x25 | E 69 0105 0x45 | e 101 0145 0x65(ack) 6 0006 0x06 | & 38 0046 0x26 | F 70 0106 0x46 | f 102 0146 0x66(bel) 7 0007 0x07 | ' 39 0047 0x27 | G 71 0107 0x47 | g 103 0147 0x67(bs) 8 0010 0x08 | ( 40 0050 0x28 | H 72 0110 0x48 | h 104 0150 0x68(ht) 9 0011 0x09 | ) 41 0051 0x29 | I 73 0111 0x49 | i 105 0151 0x69(nl) 10 0012 0x0a | * 42 0052 0x2a | J 74 0112 0x4a | j 106 0152 0x6a(vt) 11 0013 0x0b | + 43 0053 0x2b | K 75 0113 0x4b | k 107 0153 0x6b(np) 12 0014 0x0c | , 44 0054 0x2c | L 76 0114 0x4c | l 108 0154 0x6c(cr) 13 0015 0x0d | - 45 0055 0x2d | M 77 0115 0x4d | m 1090155 0x6d(so) 14 0016 0x0e | . 46 0056 0x2e | N 78 0116 0x4e | n 110 0156 0x6e(si) 15 0017 0x0f | / 47 0057 0x2f | O 79 0117 0x4f | o 111 0157 0x6f(dle) 16 0020 0x10 | 0 48 0060 0x30 | P 80 0120 0x50 | p 112 0160 0x70(dc1) 17 0021 0x11 | 1 49 0061 0x31 | Q 81 0121 0x51 | q 113 0161 0x71(dc2) 18 0022 0x12 | 2 50 0062 0x32 | R 82 0122 0x52 | r 114 0162 0x72(dc3) 19 0023 0x13 | 3 51 0063 0x33 | S 83 0123 0x53 | s 115 0163 0x73(dc4) 20 0024 0x14 | 4 52 0064 0x34 | T 84 0124 0x54 | t 116 0164 0x74(nak) 21 0025 0x15 | 5 53 0065 0x35 | U 85 0125 0x55 | u 117 0165 0x75(syn) 22 0026 0x16 | 6 54 0066 0x36 | V 86 0126 0x56 | v 118 0166 0x76(etb) 23 0027 0x17 | 7 55 0067 0x37 | W 87 0127 0x57 | w 119 0167 0x770170 0x78(em) 25 0031 0x19 | 9 57 0071 0x39 | Y 89 0131 0x59 | y 121 0171 0x79(sub) 26 0032 0x1a | : 58 0072 0x3a | Z 90 0132 0x5a | z 122 0172 0x7a(esc) 27 0033 0x1b | ; 59 0073 0x3b | [ 91 0133 0x5b | { 123 0173 0x7b(fs) 28 0034 0x1c | < 60 0074 0x3c | \ 92 0134 0x5c | | 124 0174 0x7c(gs) 29 0035 0x1d | = 61 0075 0x3d | ] 93 0135 0x5d | } 125 0175 0x7d(rs) 30 0036 0x1e | > 62 0076 0x3e | ^ 94 0136 0x5e | ~ 126 0176 0x7e(us) 31 0037 0x1f | ? 63 0077 0x3f | _ 95 0137 0x5f | (del) 127 0177 0x7f====================================常数值描述vbKeyLButton 1 鼠标左键vbKeyRButton 2 鼠标右键vbKeyCancel 3 CANCELvbKeyMButton 4 鼠标中键vbKeyBack 8 BACKSPACEvbKeyTab 9 TABvbKeyClear 12 CLEARvbKeyReturn 13 ENTERvbKeyShift 16 SHIFTvbKeyControl 17 CTRLvbKeyMenu 18 菜单键vbKeyPause 19 PAUSEvbKeyCapital 20 CAPS LOCKvbKeyEscape 27 ESCvbKeySpace 32 SPACEBARvbKeyPageUp 33 PAGEUPvbKeyPageDown 34 PAGEDOWNvbKeyEnd 35 ENDvbKeyHome 36 HOMEvbKeyLeft 37 LEFT ARROWvbKeyUp 38 UP ARROWvbKeyRight 39 RIGHT ARROWvbKeyDown 40 DOWN ARROWvbKeySelect 41 SELECT vbKeyPrint 42 PRINT SCREEN vbKeyExecute 43 EXECUTE vbKeySnapshot 44 SNAP SHOT vbKeyInser 45 INS vbKeyDelete 46 DEL vbKeyHelp 47 HELP vbKeyNumlock 144 NUM LOCKvbKeyA 65 AvbKeyB 66 BvbKeyC 67 CvbKeyD 68 DvbKeyE 69 EvbKeyF 70 FvbKeyG 71 GvbKeyH 72 HvbKeyI 73 IvbKeyJ 74 JvbKeyK 75 KvbKeyL 76 LvbKeyM 77 MvbKeyN 78 NvbKeyO 79 OvbKeyP 80 PvbKeyQ 81 QvbKeyR 82 RvbKeyS 83 SvbKeyT 84 TvbKeyU 85 UvbKeyV 86 VvbKeyW 87 WvbKeyX 88 XvbKeyY 89 YvbKeyZ 90 ZvbKey0 48 0vbKey1 49 1vbKey2 50 2vbKey3 51 3vbKey4 52 4vbKey5 53 5vbKey6 54 6vbKey7 55 7vbKey8 56 8vbKey9 57 9数字小键盘上的键vbKeyNumpad0 96 0vbKeyNumpad1 97 1vbKeyNumpad2 98 2vbKeyNumpad3 99 3vbKeyNumpad4 100 4vbKeyNumpad5 101 5vbKeyNumpad6 102 6vbKeyNumpad7 103 7vbKeyNumpad8 104 8vbKeyNumpad9 105 9vbKeyMultiply 106 乘号(*)vbKeyAdd 107 加号(+)vbKeySeparator 108 ENTER(在数字小键盘上)vbKeySubtract 109 减号(-)vbKeyDecimal 110 小数点(.)vbKeyDivide 111 除号(/)功能键vbKeyF1 112 F1vbKeyF2 113 F2vbKeyF3 114 F3vbKeyF4 115 F4vbKeyF5 116 F5vbKeyF6 117 F6vbKeyF7 118 F7vbKeyF8 119 F8vbKeyF9 120 F9vbKeyF10 121 F10vbKeyF11 122 F11vbKeyF12 123 F12vbKeyF13 124 F13vbKeyF14 125 F14 vbKeyF15 126 F15 vbKeyF16 127 F16。