ASCII code table and keyboard code table.

Source: Internet
Author: User
Tags control characters
ASCII code table and keyboard code table. It is useful for the sendmessage function.
ASCII code table
ASCII Value Control characters ASCII Value Control characters ASCII Value Control characters ASCII Value Control characters
0 Nut 32 (Space) 64 @ 96 ,
1 Soh 33 ! 65 A 97 A
2 STX 34 " 66 B 98 B
3 Etx 35 # 67 C 99 C
4 EOT 36 $ 68 D 100 D
5 Enq 37 % 69 E 101 E
6 ACK 38 & 70 F 102 F
7 Bel 39 , 71 G 103 G
8 BS 40 ( 72 H 104 H
9 HT 41 ) 73 I 105 I
10 Lf 42 * 74 J 106 J
11 Vt 43 + 75 K 107 K
12 FF 44 , 76 L 108 L
13 Cr 45 - 77 M 109 M
14 So 46 . 78 N 110 N
15 Si 47 / 79 O 111 O
16 DLE 48 0 80 P 112 P
17 DCI 49 1 81 Q 113 Q
18 DC2 50 2 82 R 114 R
19 DC3 51 3 83 X 115 S
20 Dc4 52 4 84 T 116 T
21 Nak 53 5 85 U 117 U
22 SYN 54 6 86 V 118 V
23 TB 55 7 87 W 119 W
24 Can 56 8 88 X 120 X
25 Em 57 9 89 Y 121 Y
26 Sub 58 : 90 Z 122 Z
27 ESC 59 ; 91 [ 123 {
28 FS 60 < 92 / 124 |
29 GS 61 = 93 ] 125 }
30 RS 62 > 94 ^ 126 ~
31 Us 63 ? 95 __ 127 Del
Nul VT vertical tabulation SYN idling Synchronization
Soh title starts FF Paper Control Etb Information Group Transfer ended
Start of STX text Cr press ENTER Can void
Etx text ended So shift output Em paper
Eoy transmission ends Si shift Input Sub placement
Enq query characters Dle Space ESC code change
Ack acknowledge DC1 Device Control 1 FS text Separator
Bel alarm DC2 Device Control 2 GS group Separator
BS returns to one grid DC3 Device Control 3 RS record delimiter
HT horizontal list Dc4 Device Control 4 US unit Separator
Lf line feed Nak no Del Delete
Common ASCII codes for keyboards
ESC key vk_escape (27)
Enter the key: vk_return (13)
Tab key: vk_tab (9)
Caps Lock key: vk_capital (20)
Shift key: vk_shift ($10)
CTRL: vk_control (17)
Alt key: vk_menu (18)
Space key: vk_space ($20/32)
Backspace key: vk_back (8)
Left logo key: vk_lwin (91)
Right logo key: vk_lwin (92)
Right-click the shortcut key: vk_apps (93)

Insert key: vk_insert (45)
Home Key: vk_home (36)
Page up: vk_prior (33)
Pagedown: vk_next (34)
End key: vk_end (35)
Delete key: vk_delete (46)

Direction key (Direction): vk_left (37)
Direction key (Direction): vk_up (38)
Direction key (→): vk_right (39)
Direction key (Direction): vk_down (40)

F1 key: vk_f1 (112)
F2 key: vk_f2 (113)
F3 key: vk_f3 (114)
F4 key: vk_f4 (115)
F5 key: vk_f5 (116)
F6 key: vk_f6 (117)
F7 key: vk_f7 (118)
F8: vk_f8 (119)
F9 key: vk_f9 (120)
F10 key: vk_f10 (121)
F11 key: vk_f11 (122)
F12 key: vk_f12 (123)

Num Lock key: vk_numlock (144)
Keypad 0: vk_numpad0 (96)
Keypad 1: vk_numpad0 (97)
Keypad 2: vk_numpad0 (98)
Keypad 3: vk_numpad0 (99)
Keypad 4: vk_numpad0 (100)
Keypad 5: vk_numpad0 (101)
Keypad 6: vk_numpad0 (102)
Keypad 7: vk_numpad0 (103)
Keypad 8: vk_numpad0 (104)
Keypad 9: vk_numpad0 (105)
Keypad.: vk_decimal (110)
Keypad *: vk_multiply (106)
Keypad +: vk_multiply (107)
Keypad-: vk_subtract (109)
Keypad/: vk_divide (111)

Pause Break Key: vk_pause (19)
Scroll Lock key: vk_scroll (145)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.