c语言 f11扫描码,scancode(扫描码).doc

scancode(扫描码)

scancode(扫描码)

In order to set it correctly, it is necessary for us to understand the "Scancode Map" (scan code mapping) first. "Scancode Map" is a binary key value in the [HKEY_LOCAL_MacHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] in the registry (default, no, new), and has a fixed format. The general format of Scancode Map Code: "hex:00,00,00,00,00,00,00,00, |02|, 00,00,00, | mapping after the scan code (XX XX), the original scan code (XX XX) |00,00,00,00". Its meaning is: 8 00 (two DWord 0) is the version number and the head of the next byte, "02" means the minimum number of mappings, the value "02", said the only map a set (here is the number of numerical mapping with the end of the end of 00, as "00, 00. 00, so the total is a large number than the actual mapping), to map multiple groups, only need to increase the corresponding values, such as the mapping of 2 groups and its value should be" 03 "," 3 groups of 04". The code behind each of the 4 is a group: the first two are mapped key scan code, two is the original key scan code. If you want to exchange two keys, one has two sets of mappings, and the four values are arranged as follows: key A, key B, key B, key A - it means that the key A becomes the key B, and the key B becomes the key A. Finally, end with "00,00,00,00". After we know "Scancode Map", we can use the add function key. For example, the WIN key scan code is: "E0 5B", "Esc" is "0001", the left "Ctrl" is "00 1D", and more detailed scanning code, please refer to the keyboard scanning code.

5, after you restart your computer, your change will take effect.

6, you can also save the following text as "scancode.reg", double-click the import registry. Through the above mentioned key check key table query, find you want to replace the Scan Code code, the ##, ## to replace it.

Windows Registry Editor Version 5

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]

"Scancode Map" =hex:00,00,00,00,00,00,00,00,02,00,00,00, ##, ##, ##, ##,

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值