键盘扫描码[比较完整]

Keyboard Scan Codes (Numerical Order)

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 | |
------------------+-------------------+-------------------+--------------------

(0)

相关推荐

  • 键盘扫描码[比较完整]

    Keyboard Scan Codes (Numerical Order)Keyboard Scan Codes (Numerical Order) ---------------+---------------+---------------+---------------+--------------- HEX DEC keys |HEX DEC keys |HEX DEC keys |HEX DEC keys |HEX DEC keys ---------------+----------

  • jQuery实时显示鼠标指针位置和键盘ASCII码

    本文通过jquery技术实现鼠标指针位置和键盘ASCII码,代码简单易懂,具体内容请看下文吧. <!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8" /> <script type="text/javascript" src="js/jquery-2.1.4.js"></scr

  • Java使用opencv识别二维码的完整步骤

    目录 前言 OpenCV的安装 开发环境配置 识别二维码 总结 前言 OpenCV的全称是Open Source Computer Vision Library,它是一个跨平台的计算机视觉库,由英特尔公司发起并参与开发,以BSD许可证授权发行,可以在商业和研究领域中免费使用.OpenCV本身由C++语言开发,但也具有各种其他语言的接口,并支持windows.linux.ios.android等各种操作系统.本文将介绍如何使用OpenCV与Java语言进行二维码识别. OpenCV的安装 目前Op

  • Android手机(设备)连接扫描枪扫码遇到的问题

    以下内容以我发布前的时间为准,可能之后厂商给设备改进后都没有这些问题. 1.android手机连接扫描枪有些手机显示不了系统键盘 2.连接扫描枪使用的是百度输入法,条码是字母数字组合的扫码会出现乱码(如条码:A0011305150081:小米没有键盘的扫描出现:a0011305150081,啊1305150081,等:华为有键盘的出现:a0011305150081,0011305150081):如下图: 3.连接扫描枪不使用百度输入法,小米手机使用搜狗输入法扫码:A0011305150081,出

  • C#实现扫描枪扫描二维码并打印(实例代码)

    1.使用usb口输入的扫描枪,这里实现使用了winform 首先创建一个CS文件 using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; namespace am_sign { class BardCodeHooK { public delegate voi

  • Windows API函数大全(完整)

    1. API之网络函数 WNetAddConnection 创建同一个网络资源的永久性连接 WNetAddConnection2 创建同一个网络资源的连接 WNetAddConnection3 创建同一个网络资源的连接 WNetCancelConnection 结束一个网络连接 WNetCancelConnection2 结束一个网络连接 WNetCloseEnum 结束一次枚举操作 WNetConnectionDialog 启动一个标准对话框,以便建立同网络资源的连接 WNetDisconne

  • 易语言仿按键精灵录制键盘鼠标操作的代码

    DLL命令表 .版本 2 .DLL命令 取按键状态, 短整数型, "user32.dll", "GetAsyncKeyState" .参数 鼠标键, 整数型 .DLL命令 取鼠标位置, 整数型, "user32.dll", "GetCursorPos" .参数 当前鼠标位置, 鼠标位置, 传址 .DLL命令 模拟鼠标按键, , , "mouse_event" .参数 鼠标动作, 整数型 .参数 水平位置,

  • 基于C#实现简易的键盘记录器

    目录 实现功能 开发环境 实现代码 实现效果 利用HOOK技术来做一个键盘记录器,看看一天下来,我们点击了多少次键盘,哪些键的使用频率最高. 实现功能 使用C#实现一个键盘记录器 开发环境 开发工具: Visual Studio 2013 .NET Framework版本:4.5 实现代码 public class HookUtil { #region windows api /// <summary> /// 安装钩子 /// </summary> [DllImport(&quo

  • GridView自定义分页实例详解(附demo源码下载)

    本文实例讲述了GridView自定义分页实现方法.分享给大家供大家参考,具体如下: CSS样式 首先把CSS样式代码粘贴过来: .gv { border: 1px solid #D7D7D7; font-size:12px; text-align:center; } .gvHeader { color: #3F6293; background-color: #F7F7F7; height: 24px; line-height: 24px; text-align: center; font-wei

  • 在线ASC码查询

    目前计算机中用得最广泛的字符集及其编码,是由美国国家标准局(ANSI)制定的ASCII码(American Standard Code for Information Interchange,美国标准信息交换码),它已被国际标准化组织(ISO)定为国际标准,称为ISO 646标准.适用于所有拉丁文字字母,ASCII码有7位码和8位码两种形式.    因为1位二进制数可以表示(21=)2种状态:0.1:而2位二进制数可以表示(22)=4种状态:00.01.10.11:依次类推,7位二进制数可以表示

随机推荐