ASCII码表和键盘键码表及Java键码表

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

表一:ASCII 码表(完整版)

ASCII值字符ASCII值字符ASCII值字符ASCII值字符0NUT32(space)64@96、1SOH33!65A97a 2STX34”66B98b 3ETX35#67C99c 4EOT36$68D100d 5ENQ37%69E101e 6ACK38&70F102f

7BEL39,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 key

VK_LBUTTON Left mouse button

VK_RBUTTON Right mouse button

VK_CANCEL Control+Break

VK_MBUTTON Middle mouse button

VK_BACK Backspace key

VK_TAB Tab key

VK_CLEAR Clear key

VK_RETURN Enter key

VK_SHIFT Shift key

VK_CONTROL Ctrl key

VK_MENU Alt key

VK_PAUSE Pause key

VK_CAPITAL Caps Lock key

VK_KANA Used with IME

VK_HANGUL Used with IME

VK_JUNJA Used with IME

VK_FINAL Used with IME

VK_HANJA Used with IME

VK_KANJI Used with IME

VK_CONVERT Used with IME

VK_NONCONVERT Used with IME

VK_ACCEPT Used with IME

VK_MODECHANGE Used with IME

VK_ESCAPE Esc key

VK_SPACE Space bar

VK_PRIOR Page Up key

VK_NEXT Page Down key

VK_END End key

VK_HOME Home key

VK_LEFT Left Arrow key

VK_UP Up Arrow key

VK_RIGHT Right Arrow key

VK_DOWN Down Arrow key

VK_SELECT Select key

VK_PRINT Print key (keyboard-specific) VK_EXECUTE Execute key

VK_SNAPSHOT Print Screen key

VK_INSERT Insert key

VK_DELETE Delete key

VK_HELP Help key

VK_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 key

VK_F2 F2 key

VK_F3 F3 key

VK_F4 F4 key

VK_F5 F5 key

VK_F6 F6 key

VK_F7 F7 key

VK_F8 F8 key

VK_F9 F9 key

VK_F10 F10 key

VK_F11 F11 key

VK_F12 F12 key

VK_F13 F13 key

VK_F14 F14 key

VK_F15 F15 key

VK_F16 F16 key

VK_F17 F17 key

VK_F18 F18 key

VK_F19 F19 key

相关文档
最新文档