Text only语言: 键盘码表(VK_XX virtual key)
------------------- virtual key value table by ----------------
0x00-07 ! LBUTTON RBUTTON CANCEL MBUTTON ! ! !
0x08-0F BACK TAB ! ! CLEAR RETURN ! !
0x10-17 SHIFT CONTROL MENU PAUSE CAPITAL HANGUL ! JUNJA
0x18-1F FINAL KANJI ! ESCAPE CONVERT NONCONVERT ACCEPT MODECHANGE
0x20-27 SPACE PRIOR NEXT END HOME LEFT UP RIGHT
0x28-2F DOWN SELECT PRINT EXECUTE SNAPSHOT INSERT DELETE HELP
0x30-37 0 1 2 3 4 5 6 7
0x38-3F 8 9 ! ! ! ! ! !
0x40-47 ! A B C D E F G
0x48-4F H I J K L M N O
0x50-57 P Q R S T U V W
0x58-5F X Y Z LWIN RWIN APPS ! !
0x60-67 NUMPAD0 NUMPAD1 NUMPAD2 NUMPAD3 NUMPAD4 NUMPAD5 NUMPAD6 NUMPAD7
0x68-6F NUMPAD8 NUMPAD9 MULTIPLY ADD SEPARATOR SUBTRACT DECIMAL DIVIDE
0x70-77 F1 F2 F3 F4 F5 F6 F7 F8
0x78-7F F9 F10 F11 F12 F13 F14 F15 F16
0x80-87 F17 F18 F19 F20 F21 F22 F23 F24
0x88-8F ! ! ! ! ! ! ! !
0x90-97 OEM_NUMBER OEM_SCROLL OEM_SHIFT ! ! ! ! !
0x98-9F ! ! ! ! ! ! ! !
0xA0-A7 LSHIFT RSHIFT LCONTROL RCONTROL LMENU RMENU ! !
0xA8-AF ! ! ! ! ! ! ! !
0xB0-B7 ! ! ! ! ! ! ! !
0xB8-BF ! OEM_0 OEM_1 OEM_PLUS OEM_COMMA OEM_MINUS OEM_PERIOD OEM_2
0xC0-C7 OEM_3 ! ! ! ! ! ! !
0xC8-CF ! ! ! ! ! ! ! !
0xD0-D7 ! ! ! ! ! ! ! !
0xD8-DF ! ! ! OEM_4 OEM_5 OEM_6 OEM_7 OEM_8
0xE0-E7 OEM_9 OEM_AX OEM_BSLASH ! ! PROCESSKEY ! !
0xE8-EF ! ! ! ! ! ! ! !
0xF0-F7 ! ! ! ! ! ! ATTN CRSEL
0xF8-FF EXSEL EREOF PLAY ZOOM NONAME PA1 OEM_CLEAR !
Text only语言: 键盘扫描码(全)
Keyboard Scan Codes (Numerical Order)
---------------+---------------+---------------+---------------+---------------
HEX DEC keys |HEX DEC keys |HEX DEC keys |HEX DEC keys |HEX DEC keys
---------------+---------------+---------------+---------------+---------------
|10 16 Q |20 32 D |30 48 B |40 64 F6
01 1 ESC |11 17 W |21 33 F |31 49 N |41 65 F7
02 2 1 |12 18 E |22 34 G |32 50 M |42 66 F8
03 3 2 |13 19 R |23 35 H |33 51 , |43 67 F9
04 4 3 |14 20 T |24 36 J |34 52 . |44 68 F10
05 5 4 |15 21 Y |25 37 K |35 53 / |45 69 Num
06 6 5 |16 22 U |26 38 L |36 54 R Shift|46 70 Scroll
07 7 6 |17 23 I |27 39 ; |37 55 PrtSc |47 71 Home
08 8 7 |18 24 O |28 40 ' |38 56 Alt |48 72 Up
09 9 8 |19 25 P |29 41 ` |39 57 Space |49 73 PgUp
0A 10 9 |1A 26 [ |2A 42 L Shift|3A 58 Caps |4A 74 -
0B 11 0 |1B 27 ] |2B 43 \ |3B 59 F1 |4B 75 Left
0C 12 - |1C 28 |2C 44 Z |3C 60 F2 |4C 76 Center
0D 13 = |1D 29 CTRL |2D 45 X |3D 61 F3 |4D 77 Right
0E 14 bs |1E 30 A |2E 46 C |3E 62 F4 |4E 78 +
0F 15 Tab |1F 31 S |2F 47 V |3F 63 F5 |4F 79 End
---------------+---------------+---------------+---------------+---------------
50 80 Down | | | |
51 81 PgDn | | | |
52 82 Ins | | | |
53 83 Del | | | |
---------------+---------------+---------------+---------------+---------------
Keyboard Scan Codes (Read from Port HEX 60 = DEC 96) (Keyboard Layout)
Top number ... DEC
Bottom number ... HEX
+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+
|F1|F2|ESC| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |BkS|Num Lok|Scr Lok|
| | | | | | | | | | | | | | | | | | |
|59|60| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |10 |11 |12 |13 |14 | 69 | 70 |
|3B|3C|01 |02 |03 |04 |05 |06 |07 |08 |09 |0A |0B |0C |0D |0E | 45 | 46 |
+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+
|F3|F4|TAB| Q | W | E | R | T | Y | U | I | O | P | [ | ] | | 7 3 8 | 9 3 - |
| | | | | | | | | | | | | | | | | 3 | 3 |
|61|62|15 |16 |17 |18 |19 |20 |21 |22 |23 |24 |25 |26 |27 | |71 372 |73 374 |
|3D|3E|0F |10 |11 |12 |13 |14 |15 |16 |17 |18 |19 |1A |1B | |47 348 |49 34A |
+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+
|F5|F6|CTR| A | S | D | F | G | H | J | K | L | ; | ' | ` |28 | 4 3 5 | 6 3 |
| | | | | | | | | | | | | | | | | 3 | 3 |
|63|64|29 |30 |31 |32 |33 |34 |35 |36 |37 |38 |39 |40 |41 | |75 376 |77 3 |
|3F|40|1D |1E |1F |20 |21 |22 |23 |24 |25 |26 |27 |28 |29 | |4B 34C |4D 3 |
+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+
|F7|F8|Shf| \ | Z | X | C | V | B | N | M | , | . | / |Shf|Prt| 1 3 2 | 3 3 + |
| | | | | | | | | | | | | | | | | 3 | 3 |
|65|66|42 |43 |44 |45 |46 |47 |48 |49 |50 |51 |52 |53 |54 |55 |78 380 |81 378 |
|41|42|2A |2B |2C |2D |2E |2F |30 |31 |32 |33 |34 |35 |36 |37 |4F 350 |51 34E |
+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+
|F9|F0| A|t | | | | |pac| | | | |Cap|Lok| I|s 3 D|l 3 |
| | | | | | | | | | | | | | | | | 3 | 3 |
|67|68| 5| | | | | |57 | | | | | 5| | 8| 3 8| 3 |
|43|44| 3| | | | | |39 | | | | | 3| | 5| 3 5| 3 |
+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+
Extended ASCII Special Key Codes (Numerical Order)
... composed of 2 bytes, the 2nd byte being 00 (00 signifies that the special codes are to be applied.)
HEX DEC keys
-------------------------------
03 3 CTRL-2; same as CHR$(0)
0F 15 Shift-tab
10 16 Alt-Q
11 17 Alt-W
12 18 Alt-E
13 19 Alt-R
14 20 Alt-T
15 21 Alt-Y
16 22 Alt-U
17 23 Alt-I
18 24 Alt-O
19 25 Alt-P
1E 30 Alt-A
1F 31 Alt-S
20 32 Alt-D
21 33 Alt-F
22 34 Alt-G
23 35 Alt-H
24 36 Alt-J
25 37 Alt-K
26 38 Alt-L
2C 44 Alt-Z
2D 45 Alt-X
2E 46 Alt-C
2F 47 Alt-V
30 48 Alt-B
31 49 Alt-N
32 50 Alt-M
3B 59 F1
3C 60 F2
3D 61 F3
3E 62 F4
3F 63 F5
40 64 F6
41 65 F7
42 66 F8
43 67 F9
44 68 F10
47 71 Home
48 72 Up
49 73 PgUp
4B 75 Left
4D 77 Right
4F 79 End
50 80 Down
51 81 PgDn
52 82 Ins
53 83 Del
54 84 Shift-F1
55 85 Shift-F2
56 86 Shift-F3
57 87 Shift-F4
58 88 Shift-F5
59 89 Shift-F6
5A 90 Shift-F7
5B 91 Shift-F8
5C 92 Shift-F9
5D 93 Shift-F10
5E 94 Ctrl-F1
5F 95 Ctrl-F2
60 96 Ctrl-F3
61 97 Ctrl-F4
62 98 Ctrl-F5
63 99 Ctrl-F6
64 100 Ctrl-F7
65 101 Ctrl-F8
66 102 Ctrl-F9
67 103 Ctrl-F10
68 104 Alt-F1
69 105 Alt-F2
6A 106 Alt-F3
6B 107 Alt-F4
6C 108 Alt-F5
6D 109 Alt-F6
6E 110 Alt-F7
6F 111 Alt-F8
70 112 Alt-F9
71 113 Alt-F10
72 114 Ctrl-PrtSc
73 115 Ctrl-Left
74 116 Ctrl-Right
75 117 Ctrl-End
76 118 Ctrl-PgDn
77 119 Ctrl-Home
78 120 Alt-1
79 121 Alt-2
7A 122 Alt-3
7B 123 Alt-4
7C 124 Alt-5
7D 125 Alt-6
7E 126 Alt-7
7F 127 Alt-8
80 128 Alt-9
81 129 Alt-0
82 130 Alt--
83 131 Alt-=
84 132 Ctrl-PgUp
85 133 Ctrl-Up
86 134 Ctrl--(num)
87 135 Ctrl-Center
88 136 Ctrl-+(num)
89 137 Ctrl-Down
8A 138 Ctrl-Ins
8B 139 Ctrl-Del
8C 140 Alt-Home
8D 141 Alt-Up
8E 142 Alt-PgUp
8F 143 Alt--(num)
90 144 Alt-Left
91 145 Alt-Center
92 146 Alt-Right
93 147 Alt-+(num)
94 148 Alt-End
95 149 Alt-Down
96 150 Alt-PgDn
97 151 Alt-Ins
98 152 Alt-Del
Extended ASCII Special Key Codes (Keyboard Layout)
------------------+-------------------+-------------------+--------------------
HEX DEC keys | HEX DEC keys | HEX DEC keys | HEX DEC keys
------------------+-------------------+-------------------+--------------------
03 3 nul | 0F 15 Shift-tab | 72 114 Ctrl-PrtSc|
------------------+-------------------+-------------------+--------------------
47 71 Home | | 77 119 Ctrl-Home | 8C 140 Alt-Home
48 72 Up | | 85 133 Ctrl-Up | 8D 141 Alt-Up
49 73 PgUp | | 84 132 Ctrl-PgUp | 8E 142 Alt-PgUp
4A 74 -(num) | | 86 134 Ctrl--(nu)| 8F 143 Alt--(num)
4B 75 Left | | 73 115 Ctrl-Left | 90 144 Alt-Left
4C 76 Center | | 87 135 Ctrl-Centr| 91 145 Alt-Center
4D 77 Right | | 74 116 Ctrl-Right| 92 146 Alt-Right
4E 78 +(num) | | 88 136 Ctrl-+(nu)| 93 147 Alt-+(num)
4F 79 End | | 75 117 Ctrl-End | 94 148 Alt-End
50 80 Down | | 89 137 Ctrl-Down | 95 149 Alt-Down
51 81 PgDn | | 76 118 Ctrl-PgDn | 96 150 Alt-PgDn
52 82 Ins | | 8A 138 Ctrl-Ins | 97 151 Alt-Ins
53 83 Del | | 8B 139 Ctrl-Del | 98 152 Alt-Del
------------------+-------------------+-------------------+--------------------
3B 59 F1 | 54 84 Shift-F1 | 5E 94 Ctrl-F1 | 68 104 Alt-F1
3C 60 F2 | 55 85 Shift-F2 | 5F 95 Ctrl-F2 | 69 105 Alt-F2
3D 61 F3 | 56 86 Shift-F3 | 60 96 Ctrl-F3 | 6A 106 Alt-F3
3E 62 F4 | 57 87 Shift-F4 | 61 97 Ctrl-F4 | 6B 107 Alt-F4
3F 63 F5 | 58 88 Shift-F5 | 62 98 Ctrl-F5 | 6C 108 Alt-F5
40 64 F6 | 59 89 Shift-F6 | 63 99 Ctrl-F6 | 6D 109 Alt-F6
41 65 F7 | 5A 90 Shift-F7 | 64 100 Ctrl-F7 | 6E 110 Alt-F7
42 66 F8 | 5B 91 Shift-F8 | 65 101 Ctrl-F8 | 6F 111 Alt-F8
43 67 F9 | 5C 92 Shift-F9 | 66 102 Ctrl-F9 | 70 112 Alt-F9
44 68 F10 | 5D 93 Shift-F10 | 67 103 Ctrl-F10 | 71 113 Alt-F10
------------------+-------------------+-------------------+--------------------
1E 30 Alt-A | 31 49 Alt-N | 78 120 Alt-1 |
30 48 Alt-B | 18 24 Alt-O | 79 121 Alt-2 |
2E 46 Alt-C | 19 25 Alt-P | 7A 122 Alt-3 |
20 32 Alt-D | 10 16 Alt-Q | 7B 123 Alt-4 |
12 18 Alt-E | 13 19 Alt-R | 7C 124 Alt-5 |
21 33 Alt-F | 1F 31 Alt-S | 7D 125 Alt-6 |
22 34 Alt-G | 14 20 Alt-T | 7E 126 Alt-7 |
23 35 Alt-H | 16 22 Alt-U | 7F 127 Alt-8 |
17 23 Alt-I | 2F 47 Alt-V | 80 128 Alt-9 |
24 36 Alt-J | 11 17 Alt-W | 81 129 Alt-0 |
25 37 Alt-K | 2D 45 Alt-X | 82 130 Alt-- |
26 38 Alt-L | 15 21 Alt-Y | 83 131 Alt-= |
32 50 Alt-M | 2C 44 Alt-Z | |
------------------+-------------------+-------------------+--------------------
Text only语言: Ascii码表(全)
ASCII Table (7-bit)
(ASCII = American Standard Code for Information Interchange)
Decimal Octal Hex Binary Value
------- ----- --- ------ -----
000 000 000 00000000 NUL (Null char.)
001 001 001 00000001 SOH (Start of Header)
002 002 002 00000010 STX (Start of Text)
003 003 003 00000011 ETX (End of Text)
004 004 004 00000100 EOT (End of Transmission)
005 005 005 00000101 ENQ (Enquiry)
006 006 006 00000110 ACK (Acknowledgment)
007 007 007 00000111 BEL (Bell)
008 010 008 00001000 BS (Backspace)
009 011 009 00001001 HT (Horizontal Tab)
010 012 00A 00001010 LF (Line Feed)
011 013 00B 00001011 VT (Vertical Tab)
012 014 00C 00001100 FF (Form Feed)
013 015 00D 00001101 CR (Carriage Return)
014 016 00E 00001110 SO (Shift Out)
015 017 00F 00001111 SI (Shift In)
016 020 010 00010000 DLE (Data Link Escape)
017 021 011 00010001 DC1 (XON) (Device Control 1)
018 022 012 00010010 DC2 (Device Control 2)
019 023 013 00010011 DC3 (XOFF)(Device Control 3)
020 024 014 00010100 DC4 (Device Control 4)
021 025 015 00010101 NAK (Negative Acknowledgement)
022 026 016 00010110 SYN (Synchronous Idle)
023 027 017 00010111 ETB (End of Trans. Block)
024 030 018 00011000 CAN (Cancel)
025 031 019 00011001 EM (End of Medium)
026 032 01A 00011010 SUB (Substitute)
027 033 01B 00011011 ESC (Escape)
028 034 01C 00011100 FS (File Separator)
029 035 01D 00011101 GS (Group Separator)
030 036 01E 00011110 RS (Request to Send)(Record Separator)
031 037 01F 00011111 US (Unit Separator)
032 040 020 00100000 SP (Space)
033 041 021 00100001 ! (exclamation mark)
034 042 022 00100010 " (double quote)
035 043 023 00100011 # (number sign)
036 044 024 00100100 $ (dollar sign)
037 045 025 00100101 % (percent)
038 046 026 00100110 & (ampersand)
039 047 027 00100111 ' (single quote)
040 050 028 00101000 ( (left/opening parenthesis)
041 051 029 00101001 ) (right/closing parenthesis)
042 052 02A 00101010 * (asterisk)
043 053 02B 00101011 + (plus)
044 054 02C 00101100 , (comma)
045 055 02D 00101101 - (minus or dash)
046 056 02E 00101110 . (dot)
047 057 02F 00101111 / (forward slash)
048 060 030 00110000 0
049 061 031 00110001 1
050 062 032 00110010 2
051 063 033 00110011 3
052 064 034 00110100 4
053 065 035 00110101 5
054 066 036 00110110 6
055 067 037 00110111 7
056 070 038 00111000 8
057 071 039 00111001 9
058 072 03A 00111010 : (colon)
059 073 03B 00111011 ; (semi-colon)
060 074 03C 00111100 < (less than)
061 075 03D 00111101 = (equal sign)
062 076 03E 00111110 > (greater than)
063 077 03F 00111111 ? (question mark)
064 100 040 01000000 @ (AT symbol)
065 101 041 01000001 A
066 102 042 01000010 B
067 103 043 01000011 C
068 104 044 01000100 D
069 105 045 01000101 E
070 106 046 01000110 F
071 107 047 01000111 G
072 110 048 01001000 H
073 111 049 01001001 I
074 112 04A 01001010 J
075 113 04B 01001011 K
076 114 04C 01001100 L
077 115 04D 01001101 M
078 116 04E 01001110 N
079 117 04F 01001111 O
080 120 050 01010000 P
081 121 051 01010001 Q
082 122 052 01010010 R
083 123 053 01010011 S
084 124 054 01010100 T
085 125 055 01010101 U
086 126 056 01010110 V
087 127 057 01010111 W
088 130 058 01011000 X
089 131 059 01011001 Y
090 132 05A 01011010 Z
091 133 05B 01011011 [ (left/opening bracket)
092 134 05C 01011100 \ (back slash)
093 135 05D 01011101 ] (right/closing bracket)
094 136 05E 01011110 ^ (caret/circumflex)
095 137 05F 01011111 _ (underscore)
096 140 060 01100000 `
097 141 061 01100001 a
098 142 062 01100010 b
099 143 063 01100011 c
100 144 064 01100100 d
101 145 065 01100101 e
102 146 066 01100110 f
103 147 067 01100111 g
104 150 068 01101000 h
105 151 069 01101001 i
106 152 06A 01101010 j
107 153 06B 01101011 k
108 154 06C 01101100 l
109 155 06D 01101101 m
110 156 06E 01101110 n
111 157 06F 01101111 o
112 160 070 01110000 p
113 161 071 01110001 q
114 162 072 01110010 r
115 163 073 01110011 s
116 164 074 01110100 t
117 165 075 01110101 u
118 166 076 01110110 v
119 167 077 01110111 w
120 170 078 01111000 x
121 171 079 01111001 y
122 172 07A 01111010 z
123 173 07B 01111011 { (left/opening brace)
124 174 07C 01111100 | (vertical bar)
125 175 07D 01111101 } (right/closing brace)
126 176 07E 01111110 ~ (tilde)
127 177 07F 01111111 DEL (delete)
------------------------------------------------------------------
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI
1 DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US
2 SP ! " # $ % & ' ( ) * + , - . /
3 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
4 @ A B C D E F G H I J K L M N O
5 P Q R S T U V W X Y Z [ \ ] ^ _
6 ` a b c d e f g h i j k l m n o
7 p q r s t u v w x y z { | } ~ DEL
------------------------------------------------------------------