pb下keycode键码对照表
keycode 在键盘上每一个按键对应的码
keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode
plusminus hyphen macron copyright registered guillemotleft guillemotright masculine ordfeminine ae AE
keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
acute grave comma semicolon minus underscore period colon numbersign apostrophe
键盘代码表
键盘代码表键盘代码表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。
KEYCode 与ASCII charCode对照表
Keycode对照表ASCII(A merican S tandard C ode for I nformation I nterchange ,美国信息互换标准代码)是基于罗马字母表的一套电脑编码系统。
它主要用于显示现代英语和其他西欧语言。
它是现今最通用的单字节编码系统,并等同于国际标准ISO 646 。
Binary Decimal Hex 缩写名称/意义0000 0000 0 00 NUL 空字符(Null)0000 0001 1 01 SOH 标题开始0000 0010 2 02 STX 正文开始0000 0011 3 03 ETX 正文结束0000 0100 4 04 EOT 传输结束0000 0101 5 05 ENQ 请求0000 0110 6 06 ACK 收到通知0000 0111 7 07 BEL 响铃0000 1000 8 08 BS 退格0000 1001 9 09 HT 水平制表符0000 1010 10 0A LF 换行键0000 1011 11 0B VT 垂直制表符0000 1100 12 0C FF 换页键0000 1101 13 0D CR 回车键0000 1110 14 0E SO 不用切换(Shift键)0000 1111 15 0F SI 启用切换(Shift键)0001 0000 16 10 DLE 数据通讯换码0001 0001 17 11 DC1 XON Device Control 1 0001 0010 18 12 DC2 Device Control 20001 0011 19 13 DC3 XOFF Device Control 3 0001 0100 20 14 DC4 Device Control 40001 0101 21 15 NAK 拒绝接收0001 0110 22 16 SYN 同步空闲0001 0111 23 17 ETB End of Trans. Block0001 1000 24 18 CAN 取消0001 1001 25 19 EM 介质中断0001 1010 26 1A SUB Substitute0001 1011 27 1B ESC 溢出0001 1100 28 1C FS 文件分割符0001 1101 29 1D GS 分组符0001 1110 30 1E RS 记录分离符0001 1111 31 1F US 单元分隔符ASC II编码表ASCII码介绍目前计算机中用得最广泛的字符集及其编码,是由美国国家标准局(ANSI)制定的ASCII码(American Standard Code for Information Interchange,美国标准信息交换码),它已被国际标准化组织(ISO)定为国际标准,称为ISO 646标准。
键盘按键的各种编码对照表(全)
键盘按键的各种编码对照表(全)键盘按键的各种编码对照表本附录中的各表列举了键盘按键扫描码和其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|< p="">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并没有把它们的扫描码输入键盘缓冲区。
常用ASCII码/KeyCode/vbkey值列表
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 键
VB KeyCode 常数表
常数
值 描述
vbKeyLButton 0x1 鼠标左键
vbKeyRButton 0x2 鼠标右键
vbKeyCancel 0x3 CANCEL 键
vbKeyMButton 0x4 鼠标中键
vbKeyBack 0x8 BACKSPACE 键
vbKeyTab 0x9 TAB 键
vbKeyEscape 0x1B ESC 键
vbKeySpace 0x20 SPACEBAR 键
vbKeyPageUp 0x21 PAGE UP 键
vbKeyEnd 0x23 END 键
vbKeyHome 0x24 HOME 键
vbKeyLeft 0x25 LEFT ARROW 键
ASCII码对照表
ASCII, American Standard Code for Information Interchange 念起來像是 "阿斯key",定義從 0 到 127 的一百二十八個數字所代表的英文字母或數字或符號,所有使用 ASCII 的電腦之間可以互相讀取同一份文件而不會有不一樣的結果與意義。由於只使用 7 個位元 (bit) 就可以表示從 0 到 127 的數字,大部分的電腦都使用 8 個位元來存取字元集 (character set),所以從 128 到 255 之間的數字可以用來代表另一組一百二十八個符號,稱為 extended ASCII。
Android按键KeyCode对应表
Android按键KeyCode对应表近期碰到按键KeyCode相关的一些问题,找到一张KeyCode的对应表,做下记录,具体如下:keycode 0 =keycode 1 =keycode 2 =keycode 3 =keycode 4 =keycode 5 =keycode 6 =keycode 7 =keycode 8 = BackSpace BackSpacekeycode 9 = Tab Tabkeycode 10 =keycode 11 =keycode 12 = Clearkeycode 13 = Enterkeycode 14 =keycode 15 =keycode 16 = Shift_Lkeycode 17 = Control_Lkeycode 18 = Alt_Lkeycode 19 = Pausekeycode 20 = Caps_Lockkeycode 21 =keycode 22 =keycode 23 =keycode 24 =keycode 25 =keycode 26 =keycode 27 = Escape Escapekeycode 28 =keycode 29 =keycode 30 =keycode 31 =keycode 32 = space spacekeycode 33 = Priorkeycode 34 = Nextkeycode 35 = Endkeycode 36 = Homekeycode 37 = Leftkeycode 38 = Upkeycode 40 = Downkeycode 41 = Selectkeycode 42 = Printkeycode 43 = Executekeycode 44 =keycode 45 = Insertkeycode 46 = Deletekeycode 47 = Helpkeycode 48 = 0 equal braceright keycode 49 = 1 exclam onesuperior keycode 50 = 2 quotedbl twosuperior keycode 51 = 3 section threesuperior keycode 52 = 4 dollarkeycode 53 = 5 percentkeycode 54 = 6 ampersandkeycode 55 = 7 slash braceleft keycode 56 = 8 parenleft bracketleft keycode 57 = 9 parenright bracketright keycode 58 =keycode 59 =keycode 60 =keycode 61 =keycode 62 =keycode 63 =keycode 64 =keycode 65 = a Akeycode 66 = b Bkeycode 67 = c Ckeycode 68 = d Dkeycode 69 = e E EuroSignkeycode 70 = f Fkeycode 71 = g Gkeycode 72 = h Hkeycode 73 = i Ikeycode 74 = j Jkeycode 75 = k Kkeycode 76 = l Lkeycode 77 = m M mukeycode 78 = n Nkeycode 79 = o Okeycode 80 = p Pkeycode 81 = q Q atkeycode 82 = r Rkeycode 84 = t Tkeycode 85 = u Ukeycode 86 = v Vkeycode 87 = w Wkeycode 88 = x Xkeycode 89 = y Ykeycode 90 = z Zkeycode 91 =keycode 92 =keycode 93 =keycode 94 =keycode 95 =keycode 96 = KP_0 KP_0keycode 97 = KP_1 KP_1keycode 98 = KP_2 KP_2keycode 99 = KP_3 KP_3keycode 100 = KP_4 KP_4keycode 101 = KP_5 KP_5keycode 102 = KP_6 KP_6keycode 103 = KP_7 KP_7keycode 104 = KP_8 KP_8keycode 105 = KP_9 KP_9keycode 106 = KP_Multiply KP_Multiply keycode 107 = KP_Add KP_Addkeycode 108 = KP_Separator KP_Separator keycode 109 = KP_Subtract KP_Subtract keycode 110 = KP_Decimal KP_Decimal keycode 111 = KP_Divide 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 128 = F17 keycode 129 = F18 keycode 130 = F19 keycode 131 = F20 keycode 132 = F21 keycode 133 = F22 keycode 134 = F23 keycode 135 = F24 keycode 136 = Num_Lock keycode 137 = Scroll_Lock keycode 138 =keycode 139 =keycode 140 =keycode 141 =keycode 142 =keycode 143 =keycode 144 =keycode 145 =keycode 146 =keycode 147 =keycode 148 =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 = acute gravekeycode 188 = comma semicolonkeycode 189 = minus underscorekeycode 190 = period colonkeycode 191 =keycode 192 = numbersign apostrophe 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 registered keycode 213 = guillemotleft guillemotright keycode 214 = masculine ordfemininekeycode 215 = ae AEkeycode 216 = cent yenkeycode 217 = questiondown exclamdownkeycode 218 = onequarter onehalf threequarters keycode 219 =keycode 220 = less greater barkeycode 221 = plus asterisk asciitilde keycode 222 =keycode 223 =keycode 224 =keycode 225 =keycode 226 =keycode 227 = multiply divisionkeycode 228 = acircumflex Acircumflexkeycode 229 = ecircumflex Ecircumflexkeycode 230 = icircumflex Icircumflexkeycode 231 = ocircumflex Ocircumflexkeycode 232 = ucircumflex Ucircumflexkeycode 233 = ntilde Ntildekeycode 234 = yacute Yacutekeycode 235 = oslash Oobliquekeycode 236 = aring Aringkeycode 237 = ccedilla Ccedillakeycode 238 = thorn THORNkeycode 239 = eth ETHkeycode 240 = diaeresis cedilla currency keycode 241 = agrave Agrave atilde Atilde keycode 242 = egrave Egravekeycode 243 = igrave Igravekeycode 244 = ograve Ograve otilde Otilde keycode 245 = ugrave Ugravekeycode 246 = adiaeresis Adiaeresiskeycode 247 = ediaeresis Ediaeresiskeycode 248 = idiaeresis Idiaeresiskeycode 249 = odiaeresis Odiaeresiskeycode 250 = udiaeresis Udiaeresiskeycode 251 = ssharp question backslash keycode 252 = asciicircum degreekeycode 253 = 3 sterlingkeycode 254 = Mode_switch。
C#(KeyChar)键值对照表
C#(KeyChar)键值对照表KeyCode最为常⽤,记录了键盘上按了哪个键,当使⽤组合键时如ctrl+a,其值是"A";KeyData可以记录组合键,当使⽤组合键时如ctrl+a时,其值为"A,ctrl";KeyValue则是KeyCode的数字值,当使⽤组合键时如ctrl+a时,其值为65(A),注意不是97(a);字母和数字键的键码值(keyCode)按键键码按键键码按键键码按键键码A65J74S83149B66K75T84250C67L76U85351D68M77V86452E69N78W87553F70O79X88654G71P80Y89755H72Q81Z90856I73R82048957数字键盘上的键的键码值(keyCode)功能键键码值(keyCode)按键键码按键键码按键键码按键键码0968104F1112F71181979105F2113F8119298*106F3114F9120399+107F4115F101214100Enter108F5116F111225101-109F6117F121236102.1107103/111控制键键码值(keyCode)按键键码按键键码按键键码按键键码BackSpace8Esc27Right Arrow39-_189Tab9Spacebar32Dw Arrow40.>190Clear12Page Up33Insert45/?191Enter13Page Down34Delete46`~192Shift16End35Num Lock144[{219Control17Home36;:186/|220Alt18Left Arrow37=+187]}221Cape Lock20Up Arrow38,<188'"222多媒体键码值(keyCode)按键键码按键键码按键键码按键键码⾳量加175⾳量减174停⽌179静⾳173浏览器172邮件180搜索170收藏171。
vb中提供全部键盘对应的编码
vb中提供全部键盘对应的编码vbkeylbutton 1 鼠标左键vbkeyrbutton 2 鼠标右键vbkeycancel 3 cancel 键vbkeymbutton 4 鼠标中键vbkeyback 8 backspace 键vbkeytab 9 tab 键vbkeyclear 12 clear 键vbkeyreturn 13 enter 键vbkeyshift 16 shift 键vbkeycontrol 17 ctrl 键vbkeymenu 18 菜单键vbkeypause 19 pause 键vbkeycapital 20 caps lock 键vbkeyescape 27 esc 键vbkeyspace 32 spacebar 键vbkeypageup 33 pageup 键vbkeypagedown 34 pagedown 键vbkeyend 35 end 键vbkeyhome 36 home 键vbkeyleft 37 left arrow 键vbkeyup 38 up arrow 键vbkeyright 39 right arrow 键vbkeydown 40 down arrow 键vbkeyselect 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 lock 键a 键到 z 键与其 ascii 码的相应值'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 键0 键到 9 键与其 ascii 码的相应值 '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 键数字小键盘上的键常数值描述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 键KeyCode常数用法可在代码中的任何地方用下列常数代替实际值:常数值描述vbKeyLButton 0x1 鼠标左键vbKeyRButton 0x2 鼠标右键vbKeyCancel 0x3 CANCEL 键vbKeyMButton 0x4 鼠标中键vbKeyBack 0x8 BACKSPACE 键vbKeyTab 0x9 TAB 键vbKeyClear 0xC CLEAR 键vbKeyReturn 0xD ENTER 键vbKeyShift 0x10 SHIFT 键vbKeyControl 0x11 CTRL 键vbKeyMenu 0x12 MENU 键vbKeyPause 0x13 PAUSE 键vbKeyCapital 0x14 CAPS LOCK 键vbKeyEscape 0x1B ESC 键vbKeySpace 0x20 SPACEBAR 键vbKeyPageUp 0x21 PAGE UP 键vbKeyPageDown 0x22 PAGE DOWN 键vbKeyEnd 0x23 END 键vbKeyHome 0x24 HOME 键vbKeyLeft 0x25 LEFT ARROW 键vbKeyUp 0x26 UP ARROW 键vbKeyRight 0x27 RIGHT ARROW 键vbKeyDown 0x28 DOWN ARROW 键vbKeySelect 0x29 SELECT 键vbKeyPrint 0x2A PRINT SCREEN 键vbKeyExecute 0x2B EXECUTE 键vbKeySnapshot 0x2C SNAPSHOT 键vbKeyInsert 0x2D INSERT 键vbKeyDelete 0x2E DELETE 键vbKeyHelp 0x2F HELP 键vbKeyNumlock 0x90 NUM LOCK 键A 至 Z 键与 A 杴 Z 字母的 ASCII 码相同:常数值描述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 键0 至 9 键与数字 0 杴 9 的 ASCII 码相同:常数值描述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 键下列常数代表数字键盘上的键:常数值描述vbKeyNumpad0 0x60 0 键vbKeyNumpad1 0x61 1 键vbKeyNumpad2 0x62 2 键vbKeyNumpad3 0x63 3 键vbKeyNumpad4 0x64 4 键vbKeyNumpad5 0x65 5 键vbKeyNumpad6 0x66 6 键vbKeyNumpad7 0x67 7 键vbKeyNumpad8 0x68 8 键vbKeyNumpad9 0x69 9 键vbKeyMultiply 0x6A MULTIPLICATION SIGN (*) 键vbKeyAdd 0x6B PLUS SIGN (+) 键vbKeySeparator 0x6C ENTER 键vbKeySubtract 0x6D MINUS SIGN (杴) 键vbKeyDecimal 0x6E DECIMAL POINT (.) 键vbKeyDivide 0x6F DIVISION SIGN (/) 键下列常数代表功能键:常数值描述vbKeyF1 0x70 F1 键vbKeyF2 0x71 F2 键vbKeyF3 0x72 F3 键vbKeyF4 0x73 F4 键vbKeyF5 0x74 F5 键vbKeyF6 0x75 F6 键vbKeyF7 0x76 F7 键vbKeyF8 0x77 F8 键vbKeyF9 0x78 F9 键vbKeyF10 0x79 F10 键vbKeyF11 0x7A F11 键vbKeyF12 0x7B F12 键vbKeyF13 0x7C F13 键vbKeyF14 0x7D F14 键vbKeyF15 0x7E F15 键vbKeyF16 0x7F F16 键。
pb函数KeyDown
pb函数KeyDown----76d4be12-6ea4-11ec-9f1d-7cb59b590d7d keydown()该功能检查用户是否按下了键盘上的指定键。
语法Keydown(keycode)参数keycode:keycode枚举类型或integer类型,指明要检测的按键或某个键的ascii值返回值boolean。
如果用户按了keycode参数指定的按键,函数返回true,否则返回false。
如果参数keycode的值为null,keydown()函数返回null。
用法keydown()函数通常在某个事件的事件处理程序中调用,它并不指明用户键入了哪个字符,而是说明当前事件(即事件处理程序中调用keydown()函数的事件)发生时用户正按着哪个按键。
一般来说,应用程序在窗口的key事件或控件的按键事件中调用keydown()函数,以检测用户是否按了某个特殊键。
对控件来说,powerbuilder没有定义预定义的key事件,这也没有关系,如果在控件得到焦点后希望应用程序检测用户的按键,只要对该控件定义一个用户事件,并把pbm_keydown(其它控件)或pbm_dwnkey(数据窗口控件)映射到该用户事件上即可。
messagebox()该函数将显示一个消息对话框。
语法messagebox(title,text{,icon{,button{,default}}})参数标题:字符串类型,指定消息对话框的标题,文本:指定消息对话框中显示的消息,可以是数字数据类型,字符串或布尔值图标:图标枚举类型,可选,指定图标按钮:要显示在对话框左侧的按钮枚举类型,可选,指定显示在对话框底部的按钮。
默认值:数字类型;可选择的将按钮编号指定为默认按钮。
按钮编号从左到右计数。
默认值为1。
如果此参数指定的数字超过显示的按钮数,messagebox()函数将使用默认值返回整数值。
当函数成功执行时,它返回用户选择的按钮编号(例如,1、2、3等),并在出现错误时返回-1。
Android KEYCODE 键值对应大全
Android KEYCODE 键值对应大全2015-08-07 15:10 本站整理浏览(489)Android KEYCODE 键值对应大全,有需要的朋友可以参考下。
Android KEYCODE 键值对应大全KEYCODE列表电话键键名描述键值KEYCODE_CALL 拨号键5KEYCODE_ENDCALL 挂机键6KEYCODE_HOME 按键Home3KEYCODE_MENU 菜单键82KEYCODE_BACK 返回键4KEYCODE_SEARCH 搜索键84KEYCODE_CAMERA 拍照键27KEYCODE_FOCUS 拍照对焦键80KEYCODE_POWER 电源键26KEYCODE_NOTIFICATION 通知键83KEYCODE_MUTE 话筒静音键91KEYCODE_VOLUME_MUTE 扬声器静音键164Android KEYCODE 键值对应大全2015-08-07 15:10 本站整理浏览(489)Android KEYCODE 键值对应大全,有需要的朋友可以参考下。
Android KEYCODE 键值对应大全KEYCODE列表电话键键名描述键值KEYCODE_CALL 拨号键5KEYCODE_ENDCALL 挂机键6KEYCODE_HOME 按键Home3KEYCODE_MENU 菜单键82KEYCODE_BACK 返回键4KEYCODE_SEARCH 搜索键84KEYCODE_CAMERA 拍照键27KEYCODE_FOCUS 拍照对焦键80 KEYCODE_POWER 电源键26KEYCODE_NOTIFICATION 通知键83 KEYCODE_MUTE 话筒静音键91 KEYCODE_VOLUME_MUTE 扬声器静音键164 KEYCODE_VOLUME_UP 音量增加键24 KEYCODE_VOLUME_DOWN 音量减小键25控制键键名描述键值KEYCODE_ENTER 回车键66KEYCODE_ESCAPE ESC键111KEYCODE_DPAD_CENTER 导航键确定键23 KEYCODE_DPAD_UP 导航键向上19 KEYCODE_DPAD_DOWN 导航键向下20 KEYCODE_DPAD_LEFT 导航键向左21 KEYCODE_DPAD_RIGHT 导航键向右22KEYCODE_MOVE_HOME 光标移动到开始键122 KEYCODE_MOVE_END 光标移动到末尾键123 KEYCODE_PAGE_UP 向上翻页键92 KEYCODE_PAGE_DOWN 向下翻页键93 KEYCODE_DEL 退格键67KEYCODE_FORWARD_DEL 删除键112 KEYCODE_INSERT 插入键124KEYCODE_TAB Tab键61KEYCODE_NUM_LOCK 小键盘锁143 KEYCODE_CAPS_LOCK 大写锁定键115 KEYCODE_BREAK Break/Pause键121 KEYCODE_SCROLL_LOCK 滚动锁定键116 KEYCODE_ZOOM_IN 放大键168 KEYCODE_ZOOM_OUT 缩小键169组合键键名描述KEYCODE_ALT_LEFT Alt+LeftKEYCODE_ALT_RIGHT Alt+Right KEYCODE_CTRL_LEFT Control+Left KEYCODE_CTRL_RIGHT Control+Right KEYCODE_SHIFT_LEFT Shift+Left KEYCODE_SHIFT_RIGHT Shift+Right基本键名描述键值KEYCODE_0 按键'0'7KEYCODE_1 按键'1'8KEYCODE_2 按键'2'9KEYCODE_3 按键'3'10KEYCODE_4 按键'4'11KEYCODE_5 按键'5'12KEYCODE_6 按键'6'13KEYCODE_7 按键'7'14KEYCODE_8 按键'8'15KEYCODE_9 按键'9'16KEYCODE_A 按键'A'29KEYCODE_B 按键'B'30 KEYCODE_C 按键'C'31 KEYCODE_D 按键'D'32 KEYCODE_E 按键'E'33 KEYCODE_F 按键'F'34 KEYCODE_G 按键'G'35 KEYCODE_H 按键'H'36 KEYCODE_I 按键'I'37 KEYCODE_J 按键'J'38 KEYCODE_K 按键'K'39 KEYCODE_L 按键'L'40 KEYCODE_M 按键'M'41 KEYCODE_N 按键'N'42 KEYCODE_O 按键'O'43 KEYCODE_P 按键'P'44 KEYCODE_Q 按键'Q'45 KEYCODE_R 按键'R'46 KEYCODE_S 按键'S'47KEYCODE_T 按键'T'48KEYCODE_U 按键'U'49KEYCODE_V 按键'V'50KEYCODE_W 按键'W'51KEYCODE_X 按键'X'52KEYCODE_Y 按键'Y'53KEYCODE_Z 按键'Z'54符号键名描述KEYCODE_PLUS 按键'+'KEYCODE_MINUS 按键'-'KEYCODE_STAR 按键'*'KEYCODE_SLASH 按键'/'KEYCODE_EQUALS 按键'=' KEYCODE_AT 按键'@'KEYCODE_POUND 按键'#' KEYCODE_APOSTROPHE 按键''' (单引号) KEYCODE_BACKSLASH 按键'\'KEYCODE_COMMA 按键',' KEYCODE_PERIOD 按键'.' KEYCODE_LEFT_BRACKET 按键'[' KEYCODE_RIGHT_BRACKET 按键']' KEYCODE_SEMICOLON 按键';' KEYCODE_GRAVE 按键'`' KEYCODE_SPACE 空格键小键盘键名描述KEYCODE_NUMPAD_0 小键盘按键'0' KEYCODE_NUMPAD_1 小键盘按键'1' KEYCODE_NUMPAD_2 小键盘按键'2' KEYCODE_NUMPAD_3 小键盘按键'3' KEYCODE_NUMPAD_4 小键盘按键'4' KEYCODE_NUMPAD_5 小键盘按键'5' KEYCODE_NUMPAD_6 小键盘按键'6' KEYCODE_NUMPAD_7 小键盘按键'7'KEYCODE_NUMPAD_8 小键盘按键'8' KEYCODE_NUMPAD_9 小键盘按键'9' KEYCODE_NUMPAD_ADD 小键盘按键'+' KEYCODE_NUMPAD_SUBTRACT 小键盘按键'-' KEYCODE_NUMPAD_MULTIPLY 小键盘按键'*' KEYCODE_NUMPAD_DIVIDE 小键盘按键'/' KEYCODE_NUMPAD_EQUALS 小键盘按键'=' KEYCODE_NUMPAD_COMMA 小键盘按键',' KEYCODE_NUMPAD_DOT 小键盘按键'.' KEYCODE_NUMPAD_LEFT_PAREN 小键盘按键'(' KEYCODE_NUMPAD_RIGHT_PAREN 小键盘按键')' KEYCODE_NUMPAD_ENTER 小键盘按键回车功能键键名描述KEYCODE_F1 按键F1KEYCODE_F2 按键F2KEYCODE_F3 按键F3KEYCODE_F4 按键F4KEYCODE_F5 按键F5KEYCODE_F6 按键F6KEYCODE_F7 按键F7KEYCODE_F8 按键F8KEYCODE_F9 按键F9KEYCODE_F10 按键F10KEYCODE_F11 按键F11KEYCODE_F12 按键F12多媒体键键名描述KEYCODE_MEDIA_PLAY 多媒体键播放KEYCODE_MEDIA_STOP 多媒体键停止KEYCODE_MEDIA_PAUSE 多媒体键暂停KEYCODE_MEDIA_PLAY_PAUSE 多媒体键播放/暂停KEYCODE_MEDIA_FAST_FORWARD 多媒体键快进KEYCODE_MEDIA_REWIND 多媒体键快退KEYCODE_MEDIA_NEXT 多媒体键下一首KEYCODE_MEDIA_PREVIOUS 多媒体键上一首KEYCODE_MEDIA_CLOSE 多媒体键关闭KEYCODE_MEDIA_EJECT 多媒体键弹出KEYCODE_MEDIA_RECORD 多媒体键录音手柄按键键名描述KEYCODE_BUTTON_1 通用游戏手柄按钮#1 KEYCODE_BUTTON_2 通用游戏手柄按钮#2 KEYCODE_BUTTON_3 通用游戏手柄按钮#3 KEYCODE_BUTTON_4 通用游戏手柄按钮#4 KEYCODE_BUTTON_5 通用游戏手柄按钮#5 KEYCODE_BUTTON_6 通用游戏手柄按钮#6 KEYCODE_BUTTON_7 通用游戏手柄按钮#7 KEYCODE_BUTTON_8 通用游戏手柄按钮#8 KEYCODE_BUTTON_9 通用游戏手柄按钮#9KEYCODE_BUTTON_10 通用游戏手柄按钮#10 KEYCODE_BUTTON_11 通用游戏手柄按钮#11 KEYCODE_BUTTON_12 通用游戏手柄按钮#12 KEYCODE_BUTTON_13 通用游戏手柄按钮#13 KEYCODE_BUTTON_14 通用游戏手柄按钮#14 KEYCODE_BUTTON_15 通用游戏手柄按钮#15 KEYCODE_BUTTON_16 通用游戏手柄按钮#16 KEYCODE_BUTTON_A 游戏手柄按钮A KEYCODE_BUTTON_B 游戏手柄按钮B KEYCODE_BUTTON_C 游戏手柄按钮C KEYCODE_BUTTON_X 游戏手柄按钮X KEYCODE_BUTTON_Y 游戏手柄按钮Y KEYCODE_BUTTON_Z 游戏手柄按钮Z KEYCODE_BUTTON_L1 游戏手柄按钮L1 KEYCODE_BUTTON_L2 游戏手柄按钮L2 KEYCODE_BUTTON_R1 游戏手柄按钮R1 KEYCODE_BUTTON_R2 游戏手柄按钮R2 KEYCODE_BUTTON_MODE 游戏手柄按钮ModeKEYCODE_BUTTON_SELECT 游戏手柄按钮Select KEYCODE_BUTTON_START 游戏手柄按钮Start KEYCODE_BUTTON_THUMBL Left Thumb Button KEYCODE_BUTTON_THUMBR Right Thumb Button待查键名描述KEYCODE_NUM 按键Number modifier KEYCODE_INFO 按键InfoKEYCODE_APP_SWITCH 按键App switch KEYCODE_BOOKMARK 按键Bookmark KEYCODE_AVR_INPUT 按键A/V Receiver input KEYCODE_AVR_POWER 按键A/V Receiver power KEYCODE_CAPTIONS 按键Toggle captions KEYCODE_CHANNEL_DOWN 按键Channel down KEYCODE_CHANNEL_UP 按键Channel up KEYCODE_CLEAR 按键ClearKEYCODE_DVR 按键DVRKEYCODE_ENVELOPE 按键Envelope special functionKEYCODE_EXPLORER 按键Explorer special function KEYCODE_FORWARD 按键ForwardKEYCODE_FORWARD_DEL 按键Forward Delete KEYCODE_FUNCTION 按键Function modifier KEYCODE_GUIDE 按键GuideKEYCODE_HEADSETHOOK 按键Headset Hook KEYCODE_META_LEFT 按键Left Meta modifier KEYCODE_META_RIGHT 按键Right Meta modifier KEYCODE_PICTSYMBOLS 按键Picture Symbols modifier KEYCODE_PROG_BLUE 按键Blue “programmable”KEYCODE_PROG_GREEN 按键Green “programmable”KEYCODE_PROG_RED 按键Red “programmable”KEYCODE_PROG_YELLOW 按键Yellow “programmable”KEYCODE_SETTINGS 按键SettingsKEYCODE_SOFT_LEFT 按键Soft LeftKEYCODE_SOFT_RIGHT 按键Soft RightKEYCODE_STB_INPUT 按键Set-top-box input KEYCODE_STB_POWER 按键Set-top-box powerKEYCODE_SWITCH_CHARSET 按键Switch Charset modifier KEYCODE_SYM 按键Symbol modifierKEYCODE_SYSRQ 按键System Request / Print Screen KEYCODE_TV 按键TVKEYCODE_TV_INPUT 按键TV inputKEYCODE_TV_POWER 按键TV powerKEYCODE_WINDOW 按键WindowKEYCODE_UNKNOWN 未知按键KEYCODE_VOLUME_UP 音量增加键24KEYCODE_VOLUME_DOWN 音量减小键25控制键键名描述键值KEYCODE_ENTER 回车键66KEYCODE_ESCAPE ESC键111KEYCODE_DPAD_CENTER 导航键确定键23KEYCODE_DPAD_UP 导航键向上19KEYCODE_DPAD_DOWN 导航键向下20KEYCODE_DPAD_LEFT 导航键向左21KEYCODE_DPAD_RIGHT 导航键向右22KEYCODE_MOVE_HOME 光标移动到开始键122 KEYCODE_MOVE_END 光标移动到末尾键123 KEYCODE_PAGE_UP 向上翻页键92 KEYCODE_PAGE_DOWN 向下翻页键93 KEYCODE_DEL 退格键67KEYCODE_FORWARD_DEL 删除键112 KEYCODE_INSERT 插入键124KEYCODE_TAB Tab键61KEYCODE_NUM_LOCK 小键盘锁143 KEYCODE_CAPS_LOCK 大写锁定键115 KEYCODE_BREAK Break/Pause键121 KEYCODE_SCROLL_LOCK 滚动锁定键116 KEYCODE_ZOOM_IN 放大键168 KEYCODE_ZOOM_OUT 缩小键169组合键键名描述KEYCODE_ALT_LEFT Alt+LeftKEYCODE_ALT_RIGHT Alt+Right KEYCODE_CTRL_LEFT Control+Left KEYCODE_CTRL_RIGHT Control+Right KEYCODE_SHIFT_LEFT Shift+Left KEYCODE_SHIFT_RIGHT Shift+Right基本键名描述键值KEYCODE_0 按键'0'7KEYCODE_1 按键'1'8KEYCODE_2 按键'2'9KEYCODE_3 按键'3'10KEYCODE_4 按键'4'11KEYCODE_5 按键'5'12KEYCODE_6 按键'6'13KEYCODE_7 按键'7'14KEYCODE_8 按键'8'15KEYCODE_9 按键'9'16KEYCODE_A 按键'A'29KEYCODE_B 按键'B'30 KEYCODE_C 按键'C'31 KEYCODE_D 按键'D'32 KEYCODE_E 按键'E'33 KEYCODE_F 按键'F'34 KEYCODE_G 按键'G'35 KEYCODE_H 按键'H'36 KEYCODE_I 按键'I'37 KEYCODE_J 按键'J'38 KEYCODE_K 按键'K'39 KEYCODE_L 按键'L'40 KEYCODE_M 按键'M'41 KEYCODE_N 按键'N'42 KEYCODE_O 按键'O'43 KEYCODE_P 按键'P'44 KEYCODE_Q 按键'Q'45 KEYCODE_R 按键'R'46 KEYCODE_S 按键'S'47KEYCODE_T 按键'T'48KEYCODE_U 按键'U'49KEYCODE_V 按键'V'50KEYCODE_W 按键'W'51KEYCODE_X 按键'X'52KEYCODE_Y 按键'Y'53KEYCODE_Z 按键'Z'54符号键名描述KEYCODE_PLUS 按键'+'KEYCODE_MINUS 按键'-'KEYCODE_STAR 按键'*'KEYCODE_SLASH 按键'/'KEYCODE_EQUALS 按键'=' KEYCODE_AT 按键'@'KEYCODE_POUND 按键'#' KEYCODE_APOSTROPHE 按键''' (单引号) KEYCODE_BACKSLASH 按键'\'KEYCODE_COMMA 按键',' KEYCODE_PERIOD 按键'.' KEYCODE_LEFT_BRACKET 按键'[' KEYCODE_RIGHT_BRACKET 按键']' KEYCODE_SEMICOLON 按键';' KEYCODE_GRAVE 按键'`' KEYCODE_SPACE 空格键小键盘键名描述KEYCODE_NUMPAD_0 小键盘按键'0' KEYCODE_NUMPAD_1 小键盘按键'1' KEYCODE_NUMPAD_2 小键盘按键'2' KEYCODE_NUMPAD_3 小键盘按键'3' KEYCODE_NUMPAD_4 小键盘按键'4' KEYCODE_NUMPAD_5 小键盘按键'5' KEYCODE_NUMPAD_6 小键盘按键'6' KEYCODE_NUMPAD_7 小键盘按键'7' KEYCODE_NUMPAD_8 小键盘按键'8'KEYCODE_NUMPAD_9 小键盘按键'9' KEYCODE_NUMPAD_ADD 小键盘按键'+' KEYCODE_NUMPAD_SUBTRACT 小键盘按键'-' KEYCODE_NUMPAD_MULTIPLY 小键盘按键'*' KEYCODE_NUMPAD_DIVIDE 小键盘按键'/' KEYCODE_NUMPAD_EQUALS 小键盘按键'=' KEYCODE_NUMPAD_COMMA 小键盘按键',' KEYCODE_NUMPAD_DOT 小键盘按键'.' KEYCODE_NUMPAD_LEFT_PAREN 小键盘按键'(' KEYCODE_NUMPAD_RIGHT_PAREN 小键盘按键')' KEYCODE_NUMPAD_ENTER 小键盘按键回车功能键键名描述KEYCODE_F1 按键F1KEYCODE_F2 按键F2KEYCODE_F3 按键F3KEYCODE_F4 按键F4KEYCODE_F5 按键F5KEYCODE_F6 按键F6KEYCODE_F7 按键F7KEYCODE_F8 按键F8KEYCODE_F9 按键F9KEYCODE_F10 按键F10KEYCODE_F11 按键F11KEYCODE_F12 按键F12多媒体键键名描述KEYCODE_MEDIA_PLAY 多媒体键播放KEYCODE_MEDIA_STOP 多媒体键停止KEYCODE_MEDIA_PAUSE 多媒体键暂停KEYCODE_MEDIA_PLAY_PAUSE 多媒体键播放/暂停KEYCODE_MEDIA_FAST_FORWARD 多媒体键快进KEYCODE_MEDIA_REWIND 多媒体键快退KEYCODE_MEDIA_NEXT 多媒体键下一首KEYCODE_MEDIA_PREVIOUS 多媒体键上一首KEYCODE_MEDIA_CLOSE 多媒体键关闭KEYCODE_MEDIA_EJECT 多媒体键弹出KEYCODE_MEDIA_RECORD 多媒体键录音手柄按键键名描述KEYCODE_BUTTON_1 通用游戏手柄按钮#1 KEYCODE_BUTTON_2 通用游戏手柄按钮#2 KEYCODE_BUTTON_3 通用游戏手柄按钮#3 KEYCODE_BUTTON_4 通用游戏手柄按钮#4 KEYCODE_BUTTON_5 通用游戏手柄按钮#5 KEYCODE_BUTTON_6 通用游戏手柄按钮#6 KEYCODE_BUTTON_7 通用游戏手柄按钮#7 KEYCODE_BUTTON_8 通用游戏手柄按钮#8 KEYCODE_BUTTON_9 通用游戏手柄按钮#9 KEYCODE_BUTTON_10 通用游戏手柄按钮#10 KEYCODE_BUTTON_11 通用游戏手柄按钮#11 KEYCODE_BUTTON_12 通用游戏手柄按钮#12 KEYCODE_BUTTON_13 通用游戏手柄按钮#13 KEYCODE_BUTTON_14 通用游戏手柄按钮#14 KEYCODE_BUTTON_15 通用游戏手柄按钮#15 KEYCODE_BUTTON_16 通用游戏手柄按钮#16KEYCODE_BUTTON_A 游戏手柄按钮A KEYCODE_BUTTON_B 游戏手柄按钮B KEYCODE_BUTTON_C 游戏手柄按钮C KEYCODE_BUTTON_X 游戏手柄按钮X KEYCODE_BUTTON_Y 游戏手柄按钮Y KEYCODE_BUTTON_Z 游戏手柄按钮Z KEYCODE_BUTTON_L1 游戏手柄按钮L1 KEYCODE_BUTTON_L2 游戏手柄按钮L2 KEYCODE_BUTTON_R1 游戏手柄按钮R1 KEYCODE_BUTTON_R2 游戏手柄按钮R2 KEYCODE_BUTTON_MODE 游戏手柄按钮Mode KEYCODE_BUTTON_SELECT 游戏手柄按钮Select KEYCODE_BUTTON_START 游戏手柄按钮Start KEYCODE_BUTTON_THUMBL Left Thumb Button KEYCODE_BUTTON_THUMBR Right Thumb Button 待查键名描述KEYCODE_NUM 按键Number modifierKEYCODE_INFO 按键InfoKEYCODE_APP_SWITCH 按键App switch KEYCODE_BOOKMARK 按键Bookmark KEYCODE_AVR_INPUT 按键A/V Receiver input KEYCODE_AVR_POWER 按键A/V Receiver power KEYCODE_CAPTIONS 按键Toggle captions KEYCODE_CHANNEL_DOWN 按键Channel down KEYCODE_CHANNEL_UP 按键Channel up KEYCODE_CLEAR 按键ClearKEYCODE_DVR 按键DVRKEYCODE_ENVELOPE 按键Envelope special function KEYCODE_EXPLORER 按键Explorer special function KEYCODE_FORWARD 按键ForwardKEYCODE_FORWARD_DEL 按键Forward Delete KEYCODE_FUNCTION 按键Function modifier KEYCODE_GUIDE 按键GuideKEYCODE_HEADSETHOOK 按键Headset Hook KEYCODE_META_LEFT 按键Left Meta modifier KEYCODE_META_RIGHT 按键Right Meta modifierKEYCODE_PICTSYMBOLS 按键Picture Symbols modifier KEYCODE_PROG_BLUE 按键Blue “programmable”KEYCODE_PROG_GREEN 按键Green “programmable”KEYCODE_PROG_RED 按键Red “programmable”KEYCODE_PROG_YELLOW 按键Yellow “programmable”KEYCODE_SETTINGS 按键SettingsKEYCODE_SOFT_LEFT 按键Soft LeftKEYCODE_SOFT_RIGHT 按键Soft RightKEYCODE_STB_INPUT 按键Set-top-box input KEYCODE_STB_POWER 按键Set-top-box power KEYCODE_SWITCH_CHARSET 按键Switch Charset modifier KEYCODE_SYM 按键Symbol modifierKEYCODE_SYSRQ 按键System Request / Print Screen KEYCODE_TV 按键TVKEYCODE_TV_INPUT 按键TV inputKEYCODE_TV_POWER 按键TV powerKEYCODE_WINDOW 按键WindowKEYCODE_UNKNOWN 未知按键。
KeyCode常量(虚拟键码)
KeyCode 常量
值
十进制
(16进制) (vba返回值)
0x1
1
0x2
2
0x3
3
0x4
4
0x8
8
0x9
9
0xC
12
0xD
13
0x10
16
0x11
17
0x12
18
0x13
19
0x14
20
0x1B
27
0x20
32
0x21
33
0x22
34
0x23
35
0x24
36
0x25
37
0x26
38
0x27
39
0x28
A-Z键
0-9键
0键 1键 2键 3键 4键 5键 6键
vbKeyNumpad7
0x67
103
vbKeyNumpad8
0x68
104
vbKeyNumpad9
0x69
105
vbKeyMultiply
0x6A
106
vbKeyAdd
0x6B
107
vbKeySeparator
0x6C
108
vbKeySubtract
A-z 键:A 键 到 Z 键与–z 的 ASCII 等效
vbKeyA-Z
0键-9 键:0键 到9键与它们的 ASCII 等价
vbKey0-9 数字键盘键 vbKeyNumpad0 vbKeyNumpad1 vbKeyNumpad2 vbKeyNumpad3 vbKeyNumpad4 vbKeyNumpad5 vbKeyNumpad6
键盘KeyCode对照表
keycode 1 =keycode 2 =keycode 3 =keycode 4 =keycode 5 =keycode 6 =keycode7 =keycode8 = BackSpace BackSpace keycode9 = Tab Tabkeycode 10 =keycode 11 =keycode 12 = Clearkeycode 13 = Enterkeycode 14 =keycode 15 =keycode 16 = Shift_Lkeycode 17 = Control_Lkeycode 18 = Alt_Lkeycode 19 = Pausekeycode 20 = Caps_Lockkeycode 21 =keycode 22 =keycode 23 =keycode 24 =keycode 25 =keycode 26 =keycode 27 = Escape Escape keycode 28 =keycode 29 =keycode 30 =keycode 31 =keycode 32 = space spacekeycode 33 = Priorkeycode 34 = Nextkeycode 35 = Endkeycode 36 = Homekeycode 37 = Leftkeycode 38 = Upkeycode 39 = Rightkeycode 40 = Downkeycode 41 = Selectkeycode 42 = Printkeycode 43 = Executekeycode 45 = Insertkeycode 46 = Deletekeycode 47 = Helpkeycode 48 = 0 equal braceright keycode 49 = 1 exclam onesuperior keycode 50 = 2 quotedbl twosuperior keycode 51 = 3 section threesuperior keycode 52 = 4 dollarkeycode 53 = 5 percentkeycode 54 = 6 ampersandkeycode 55 = 7 slash braceleft keycode 56 = 8 parenleft bracketleft keycode 57 = 9 parenright bracketright keycode 58 =keycode 59 =keycode 60 =keycode 61 =keycode 62 =keycode 63 =keycode 64 =keycode 65 = a Akeycode 66 = b Bkeycode 67 = c Ckeycode 68 = d Dkeycode 69 = e E EuroSignkeycode 70 = f Fkeycode 71 = g Gkeycode 72 = h Hkeycode 73 = i Ikeycode 74 = j Jkeycode 75 = k Kkeycode 76 = l Lkeycode 77 = m M mukeycode 78 = n Nkeycode 79 = o Okeycode 80 = p Pkeycode 81 = q Q atkeycode 82 = r Rkeycode 83 = s Skeycode 84 = t Tkeycode 85 = u Ukeycode 86 = v Vkeycode 87 = w Wkeycode 89 = y Ykeycode 90 = z Zkeycode 91 =keycode 92 =keycode 93 =keycode 94 =keycode 95 =keycode 96 = KP_0 KP_0keycode 97 = KP_1 KP_1keycode 98 = KP_2 KP_2keycode 99 = KP_3 KP_3keycode 100 = KP_4 KP_4keycode 101 = KP_5 KP_5keycode 102 = KP_6 KP_6keycode 103 = KP_7 KP_7keycode 104 = KP_8 KP_8keycode 105 = KP_9 KP_9keycode 106 = KP_Multiply KP_Multiply keycode 107 = KP_Add KP_Addkeycode 108 = KP_Separator KP_Separator keycode 109 = KP_Subtract KP_Subtract keycode 110 = KP_Decimal KP_Decimal keycode 111 = KP_Divide 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 133 = F22 keycode 134 = F23 keycode 135 = F24 keycode 136 = Num_Lock keycode 137 = Scroll_Lock keycode 138 =keycode 139 =keycode 140 =keycode 141 =keycode 142 =keycode 143 =keycode 144 =keycode 145 =keycode 146 =keycode 147 =keycode 148 =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 = acute gravekeycode 188 = comma semicolonkeycode 189 = minus underscorekeycode 190 = period colonkeycode 191 =keycode 192 = numbersign apostrophe 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 = less greater barkeycode 221 = plus asterisk asciitilde keycode 222 =keycode 223 =keycode 224 =keycode 225 =keycode 226 =keycode 227 = multiply divisionkeycode 228 = acircumflex Acircumflex keycode 229 = ecircumflex Ecircumflex keycode 230 = icircumflex Icircumflex keycode 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 currency keycode 241 = agrave Agrave atilde Atilde keycode 242 = egrave Egravekeycode 243 = igrave Igravekeycode 244 = ograve Ograve otilde Otilde keycode 245 = ugrave Ugravekeycode 246 = adiaeresis Adiaeresis keycode 247 = ediaeresis Ediaeresis keycode 248 = idiaeresis Idiaeresis keycode 249 = odiaeresis Odiaeresis keycode 250 = udiaeresis Udiaeresis keycode 251 = ssharp question backslash keycode 252 = asciicircum degree keycode 253 = 3 sterlingkeycode 254 = Mode_switch.。
VB的KeyAscii码键位大全
VB的KeyAscii码键位大全VB的KeyAscii码大全16进制vbKeyLButton 0x1 鼠标左键vbKeyRButton 0x2 鼠标右键vbKeyCancel 0x3 CANCEL 键vbKeyMButton 0x4 鼠标中键vbKeyBack 0x8 BACKSPACE 键vbKeyTab 0x9 TAB 键vbKeyClear 0xC CLEAR 键vbKeyReturn 0xD ENTER 键vbKeyShift 0x10 SHIFT 键vbKeyControl 0x11 CTRL 键vbKeyMenu 0x12 MENU 键vbKeyPause 0x13 PAUSE 键vbKeyCapital 0x14 CAPS LOCK 键vbKeyEscape 0x1B ESC 键vbKeySpace 0x20 SPACEBAR 键vbKeyPageUp 0x21 PAGE UP 键vbKeyPageDown 0x22 PAGE DOWN 键vbKeyEnd 0x23 END 键vbKeyHome 0x24 HOME 键vbKeyLeft 0x25 LEFT ARROW 键vbKeyUp 0x26 UP ARROW 键vbKeyRight 0x27 RIGHT ARROW 键vbKeyDown 0x28 DOWN ARROW 键vbKeySelect 0x29 SELECT 键vbKeyPrint 0x2A PRINT SCREEN 键vbKeyExecute 0x2B EXECUTE 键vbKeySnapshot 0x2C SNAPSHOT 键vbKeyInsert 0x2D INSERT 键vbKeyDelete 0x2E DELETE 键vbKeyHelp 0x2F HELP 键vbKeyNumlock 0x90 NUM LOCK 键A至Z 键与A–Z 字母的ASCII 码相同:常数值描述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 键0 至9 键与数字0 –9 的ASCII 码相同:常数值描述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 键下列常数代表数字键盘上的键:常数值描述vbKeyNumpad0 0x60 0 键vbKeyNumpad1 0x61 1 键vbKeyNumpad2 0x62 2 键vbKeyNumpad3 0x63 3 键vbKeyNumpad4 0x64 4 键vbKeyNumpad5 0x65 5 键vbKeyNumpad6 0x66 6 键vbKeyNumpad7 0x67 7 键vbKeyNumpad8 0x68 8 键vbKeyNumpad9 0x69 9 键vbKeyMultiply 0x6A MULTIPLICA TION SIGN (*) 键vbKeyAdd 0x6B PLUS SIGN (+) 键vbKeySeparator 0x6C ENTER 键vbKeySubtract 0x6D MINUS SIGN (–) 键vbKeyDecimal 0x6E DECIMAL POINT (.) 键vbKeyDivide 0x6F DIVISION SIGN (/) 键下列常数代表功能键:常数值描述vbKeyF1 0x70 F1 键vbKeyF2 0x71 F2 键vbKeyF3 0x72 F3 键vbKeyF4 0x73 F4 键vbKeyF5 0x74 F5 键vbKeyF6 0x75 F6 键vbKeyF7 0x76 F7 键vbKeyF8 0x77 F8 键vbKeyF9 0x78 F9 键vbKeyF10 0x79 F10 键vbKeyF11 0x7A F11 键vbKeyF12 0x7B F12 键vbKeyF13 0x7C F13 键vbKeyF14 0x7D F14 键vbKeyF15 0x7E F15 键vbKeyF16 0x7F F16 键。
键盘按键的key code值
常用的键盘按键值说明一--------第一排F键和主键盘上键---------F1-F12键:值从112-123。
主键盘上数字0-9键:值从48-57。
字母A-Z键:值从65-90。
ESC键:值27。
"~"符号键:值192。
"-"减号键:189。
"="等号键:187。
" \ "键:220。
退格键Backspace:8。
TAB键:9。
"["左中括号键:219。
"]"右中括号键:221。
回车键Enter:13. 大小写转换键Caps Lock:20。
";"分号键:186。
"'"引号键:222。
Shift键:16。
(也可另只指左Shift键:160,只指右Shift键:161。
)","逗号键:188。
"。
"句号键:190。
"/"键:191。
Ctrl键:17。
(也可左:162;右:163)Alt键:18。
(也可左:164;右:165)Windows键:左:91;右:92。
------功能键---------上下左右键头键:左:37;上:38:右:39;下:40。
Sleep进入休眠键:95。
Print Screen抓屏键:44。
Scroll Lock键:145。
Insert插入键:45。
Delete删除键:46。
Home开始位置键:36。
END结束位置键:35。
Page Up向上翻页键:33。
Page Down向下翻页键:34。
------数字小键盘上的键-------Num Lock键:144。
"/"号键:111。
"*"号键:106。
"-"号键:109。
"+"号键:107。
回车键:13。
Javascript keyCode 键盘键及鼠标值表大全
keycode 247 = ediaeresis Ediaeresis keycode 248 = idiaeresis Idiaeresis keycode 249 = odiaeresis Odiaeresis keycode 250 = udiaeresis Udiaeresis keycode 251 = ssharp question backslash keycode 252 = asciicircum degree keycode 253 = 3 sterling keycode 254 = Mode_switch 使用 event 对象的 keyCode 属性判断输入的键值 eg:if(event.keyCode==13)alert("enter!"); 键值对应表 A 0X65 U 0X85 B 0X66 V 0X86 C 0X67 W 0X87 D 0X68 X 0X88 E 0X69 Y 0X89 F 0X70 Z 0X90 G 0X71 0 0X48 H 0X72 1 0X49 I 0X73 2 0X50 J 0X74 3 0X51 K 0X75 4 0X52 L 0X76 5 0X53 M 0X77 6 0X54 N 0X78 7 0X55 O 0X79 8 0X56 P 0X80 9 0X57 Q 0X81 ESC 0X1B R 0X82 CTRL 0X11 S 0X83 SHIFT 0X10 T 0X84 ENTER 0XD 如果要使用组合 键,则可以利用 event.ctrlKey,event.shiftKey,event .altKey 判断 是否按下了 ctrl 键、 shift 键以 及 alt 键
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 = acute grave keycode 188 = comma semicolon keycode 189 = minus underscore keycode 190 = period colon keycode 191 = keycode 192 = numbersign apostrophe 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 registered keycode 213 = guillemotleft guillemotright keycode 214 = masculine ordfeminine keycode 215 = ae AE keycode 216 = cent yen keycode 217 = questiondown exclamdown keycode 218 = onequarter onehalf threequarters keycode 219 = keycode 220 = less greater bar keycode 221 = plus asterisk asciitilde keycode 222 = keycode 223 = keycode 224 = keycode 225 = keycode 226 = keycode 227 = multiply division keycode 228 = acircumflex Acircumflex keycode 229 = ecircumflex Ecircumflex keycode 230 = icircumflex Icircumflex keycode 231 = ocircumflex Ocircumflex keycode 232 = ucircumflex Ucircumflex keycode 233 = ntilde Ntilde keycode 234 = yacute Yacute keycode 235 = oslash Ooblique keycode 236 = aring Aring keycode 237 = ccedilla Ccedilla keycode 238 = thorn THORN keycode 239 = eth ETH keycode 240 = diaeresis cedilla currency keycode 241 = agrave Agrave atilde Atilde keycode 242 = egrave Egrave keycode 243 = igrave Igrave keycode 244 = ograve Ograve otilde Otilde keycode 245 = ugrave Ugrave keycode 246 = adiaeresis Adiaeresis
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
字母和数字键的键码值(keyCode)
按键 键码 按键 键码 按键 键码 按键 键码
A 65 J 74 S 83 1 49
B 66 K 75 T 84 2 50
C 67 L 76 U 85 3 51
D 68 M 77 V 86 4 52
E 69 N 78 W 87 5 53
Clear 12 Page Up 33 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
浏览器 172
邮件 180
搜索 170
收藏 171
posted on 2007-04-19 21:10 鱼有所思 阅读(3377) 评论(49) 编辑 收藏 引用 网摘 所属
0 96 8 104 F1 112 F7 118
1 97 9 105 F2 113 F8 119
2 98 * 106 F3 114 F9 120
3 99 + 107 F4 115 F10 121
4 100 Enter 108 F5 116 F11 122
5 101 - 109 F6 117 F12 123
F 70 O 79 X 88 6 54
G 71 P 80 Y 89 7 55
H 72 Q 81 Z 90 8 56
I 73 R 82 0 48 9 57
数字键盘上的键的键码值(keyCode) 功能键键码值(keyCode)
按键 键码 按键 键码 按键 键码 按键 键码
6 102 . 110
7 103 / 111
控制键键码值(keyCode)
按键 键码 按键 键码 按键 键码 按键 键码
BackSpace ຫໍສະໝຸດ Esc 27 Right Arrow 39 -_ 189
Tab 9 Spacebar 32 Dw Arrow 40 .> 190
Cape Lock 20 Up Arrow 38 ,< 188 '" 222
多媒体键码值(keyCode)
按键 键码 按键 键码 按键 键码 按键 键码
音量加 175
音量减 174
停止 179
静音 173