首页 > 系统相关 >windows键盘映射Caps与Esc互换

windows键盘映射Caps与Esc互换

时间:2023-03-31 10:33:05浏览次数:58  
标签:00 Code Scan windows Caps Keys Esc key E0

1. 查找windows的键值对照表

从对照表中找到需要更改映射的按键的值,windows的键值对照表放在文末。
Caps Lock:3A 00
Esc:01 00
Backspace:0E 00
Insert:52 E0

2. 创建ScanCode Map

打开cmd或者powershell,然后输入“regedit”回车打开注册表编辑器找到以下路径:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
右键新建名为“ScanCode Map”的“二进制值”

3. 修改ScanCode Map

修改时需要遵从ScanCode Map的规则:
(1)先填充8组00表示版本号和头部字节
(2)填充“xx 00 00 00”,其中"xx"代表映射数目
(3)按“目标字节码在前,源字节码在后”的原则继续填充
(4)最后填充4组00作为结束标志

我这里将CapsEsc互换,将Insert变为Backspace

4. 重启计算机生效

5. 取消设置

从注册表中删除创建的ScanCode Map这个键

参考

https://blog.csdn.net/qq_42191914/article/details/104840458
https://zhuanlan.zhihu.com/p/29581818

键值对照表

点击查看代码
Special Keys Scan Code 
Application 5D E0 
Backspace 0E 00 
Caps Lock 3A 00 
Delete 53 E0 
End 4F E0 
Enter 1C 00 
Escape 01 00 
HOME 47 E0 
Insert 52 E0 
Left Alt 38 00 
Left Ctrl 1D 00
Left Shift 2A 00 
Left Windows 5B E0 
Num Lock 45 00 
Page Down 51 E0 
Page Up 49 E0 
Power 5E E0 
PrtSc 37 E0 
Right Alt 38 E0 
Right Ctrl 1D E0 
Right Shift 36 00 
Right Windows 5C E0 
Scroll Lock 46 00 
Sleep 5F E0
Space 39 00 
Tab 0F 00 
Wake 63 E0 
Number Pad Keys Scan Code 
0 52 00 
1 4F 00 
2 50 00 
3 51 00 
4 4B 00 
5 4C 00 
6 4D 00 
7 47 00 
8 48 00
9 49 00 
- 4A 00 
* 37 00 
. 53 00 
/ 35 E0 
+ 4E 00 
Enter 1C E0 
Function Keys 
Scan Code 
F1 3B 00 
F2 3C 00 
F3 3D 00 
F4 3E 00 
F5 3F 00
F6 40 00 
F7 41 00 
F8 42 00 
F9 43 00 
F10 44 00 
F11 57 00 
F12 58 00 
F13 64 00 
F14 65 00 
F15 66 00 
Arrow Keys Scan Code 
Down 50 E0 
Left 4B E0
Right 4D E0 
Up 48 E0 
Application Keys Scan Code 
Calculator 21 E0 
E-Mail 6C E0 
Media Select 6D E0 
Messenger 11 E0 
My Computer 6B E0 
Arrow Keys Scan Code 
Down 50 E0 
Left 4B E0 
Right 4D E0 
Up 48 E0
QWERTY Keys Scan Code 
' " 28 00 
- _ 0C 00 
, < 33 00 
. > 34 00 
/? 35 00 
;: 27 00 
[ { 1A 00 
\ | 2B 00 
] } 1B 00 
` ~ 29 00 
= + 0D 00 
0 ) 0B 00
1 ! 02 00 
2 @ 03 00 
3 # 04 00 
4 $ 05 00 
5% 06 00 
6 ^ 07 00 
7 & 08 00 
8 * 09 00 
9 ( 0A 00 
A 1E 00 
B 30 00 
C 2E 00 
D 20 00
E 12 00 
F 21 00 
G 22 00 
H 23 00 
I 17 00 
J 24 00 
K 25 00 
L 26 00 
M 32 00 
N 31 00 
O 18 00 
P 19 00 
Q 10 00
R 13 00 
S 1F 00 
T 14 00 
U 16 00 
V 2F 00 
W 11 00 
X 2D 00 
Y 15 00 
Z 2C 00 
F-Lock Keys Scan Code 
Close 40 E0 
Fwd 42 E0 
Help 3B E0
New 3E E0 
Office Home 3C E0 
Open 3F E0 
Print 58 E0 
Redo 07 E0 
Reply 41 E0 
Save 57 E0 
Send 43 E0 
Spell 23 E0 
Task Pane 3D E0 
Undo 08 E0 
Media Keys Scan Code 
Mute 20 E0
Next Track 19 E0 
Play/Pause 22 E0 
Prev Track 10 E0 
Stop 24 E0 
Volume Down 2E E0 
Volume Up 30 E0 
Non-English (US) Keys Scan Code 
¥ - 7D 00 
€45 E0 
International Keyboard 
Next to Enter 2B E0 
Next to L-Shift 56 E0 
Brazilian Keyboard
Next to R-Shift 73 E0 
Far East Keyboard 
DBE_KATAKANA 70 E0 
DBE_SBCSCHAR 77 E0 
CONVERT 79 E0 
NONCONVERT 7B E0 
Manufacturer Special Keys 
Scan 
Code 
Dell Internet 01 E0 
Dell Fn No Code 
Dell 
Decrease
Brightness 
40 05 E0 
Dell Increase Brightness 40 06 E0 
Dell CRT/LCD No Code 
Logitech iTouch 13 E0 
Logitech Shopping 04 E0 
Logitech Webcam 12 E0 
Web Keys Scan Code 
Back 6A E0 
Favorites 66 E0 
Forward 69 E0 
HOME 32 E0 
Refresh 67 E0
Search 65 E0 
Stop 68 E0 
Disable Turn Key Off 00 00 
Microsoft Natural Multimedia 
Keyboard 
Scan Code 
My Documents 
My Pictures 64 E0 
My Music 3C E0 
Mute 20 E0 
Play/Pause 22 E0 
Stop 24 E0 
+ (Volume up) 30 E0
- (Volume down) 2E E0 
|<< (Previous) 10 E0 
>>| (Next) 19 E0 
Media 6D E0 
Mail 6C E0 
Web/Home 32 E0 
Messenger 05 E0 
Calculator 21 E0 
Log Off 16 E0 
Sleep 5F E0 
Help (on F1 key) 3B E0 
Undo (on F2 key) 08 E0 
Redo (on F3 key) 07 E0
New (on F4 key) 
Open (on F5 key) 
Close (on F6 key) 
Replay (on F7 key) 
Fwd (on F8 key) 42 E0 
Send (on F9 key) 43 E0 
Spell (on F10 key) 23 E0 
Save (on F11 key) 57 E0 
Print (on F12 key) 58 E0

标签:00,Code,Scan,windows,Caps,Keys,Esc,key,E0
From: https://www.cnblogs.com/--ZHIYUAN/p/17275459.html

相关文章

  • Windows Phone 应用商店对中国开发者开放
    开发者们要注意了!!今天微软通过官方博客发布了三个关于WindowsPhone的应用商店的重要消息:(1)应用商店对中国和印度的开发者开放注册;(2)应用可以进行7.0和7.5的双版本同步更新;(3)减少了搜索算法的关键字数量,增强搜索的体验感。应用商店对中国和印度的开发者开放从今天开始,中国......
  • windows搭建nignx推流服务器
    1下载地址:http://nginx-win.ecsds.eu/download/  2下载RTMP模块,因为nginx里没有:来源:https://blog.csdn.net/stalin_/article/details/128968989链接:https://pan.baidu.com/s/1eG-hMjQHFHg0nalFBET1wA提取码:nutqnginx-rtmp-module3配置nginx的config    #......
  • windows设置网络优先级默认ipv4连接
    在某些场景,想要ipv4连接到网站,以下提供一种思路看网上说什么关闭ipv6,其实大可不必。在网络设置中,将ipv6的跃点数改大点,就可以达到默认ipv4连接优先的效果步骤:设置->网络和Internet->如图   右键属性->ipv6协议->高级->自定义跃点数  如果想ipv6连接优先同......
  • 用C#调用Windows API向指定窗口发送按键消息
    用C#调用WindowsAPI向指定窗口发送一、调用WindowsAPI。C#下调用WindowsAPI方法如下:1、引入命名空间:usingSystem.Runtime.InteropServices;2、引用需要使用的方法,格式:[DllImport("DLL文件")]方法的声明;[DllImport("user32.dll")]privatestaticexternboolShow......
  • Windows 下Nginx 的安装与配置
    目录快速导航环境变量配置验证安装是否成功启动并验证启动是否成功NginxWindows基本操作指令Nginx的基本概念正向代理反向代理负载均衡动静分离访问控制Nginx配置proxy_passroot/alias详解root基本用法location的最左匹配原则index详解alias基本用法相关参考推荐阅读Nginx官网......
  • 混合式开发 UI自动化 之desir_caps配置
    desire_caps={"platformName":"Android","platformVersion":"6.0","deviceName":"127.0.0.1:7555","appPackage":"com.tencent.mm","appActivity":".ui.Laun......
  • C#:Windows Forms应用程序.cs/.designer.cs/.resx文件之间关系
    在使用VisualStudio开发WindowsForms应用程序时,我们会发现每个窗体都有三个文件:.cs、.designer.cs和.resx。这三个文件之间的关系是什么呢?首先.cs文件是窗体的代码文件,其中包含了窗体的所有事件处理程序、属性和方法等。.designer.cs文件是由VisualStudio自动生成的,其中包......
  • windows安装mongodb,配置服务名,简化启动及遇到的问题
    1、官网下载官网地址:https://www.mongodb.com进到官网之后,Products->CommunitiServer(或者直接访问 https://www.mongodb.com/try/download/community )   ......
  • NPM Windows安装及配置
    1:首先下载node.jshttps://nodejs.org/zh-cn2:查看是否安装成功node-v安装成功后会有个版本号3:安装npm淘宝镜像npmconfigsetregistryhttps://regist......
  • 【应用服务 App Service】App Service For Windows 如何挂载Storage Account File Sha
    问题描述很早之前,介绍了在AppServiceforLinux中挂载StorageAccount共享文件,当时Windows无法实现这个功能。而现在,AppServiceForWindows也可以挂载StorageAccount......