鍵盤各鍵對應的ASCII碼值 (0x指16進位制,delete鍵的ascii碼值是0x2e,也即十進位制的46)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 鍵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 鍵
鍵盤各鍵對應的ASCII碼值 (0x指16進位制,delete鍵的ascii碼值是0x2e,也即十進位制的46)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 鍵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 鍵