正在加载...
 
< IBM thinkp...
上安焦首页了,庆祝一... >
imb thinkpad win 键的烦恼 zz 
 标签:乱弹琴 | 浏览数(940) | 评论数(0) | 2007-08-06

通过注册表来修改键位的方法
  
Keyboard Customizer Utility虽然提供win键的功能,但可选项太少。如果直接改注册表,就可以将任意键定义成其它键。
  
将以下等号间的文字copy到记事本中,存为.reg文件,再导入注册表,重启动,就可以实现将右Alt键定义为左Win键的功能(对2000及XP有效)
  
===================================================
Windows Registry Editor Version 5.00
  
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,\
02,00,00,00,\
5b,e0,38,e0,\
00,00,00,00
===================================================
  
解释一下
Value                    Interpretation  
0x00000000          Header: Version. Set to all zeroes.  
0x00000000          Header: Flags. Set to all zeroes.  
0x00000002          Two entries in the map (including null entry).  
0xE038E05B          Right ALT key --&gt; Windows key (0xE038 --&gt; 0xE05B).  
0x00000000          Null terminator.  
  
比较一下将左Alt键定义为左Win键的功能的注册表文件吧
===================================================
Windows Registry Editor Version 5.00
  
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,\
02,00,00,00,\
5b,e0,38,00,\
00,00,00,00
===================================================
就是右alt键的scancode:e038变成了左alt键的scancode:0038
  
大家自己想怎么改,就自己试吧
各个键位的scancode map在这儿下载:  
http://download.microsoft.com/download/whistler/hwdev3/1.0/WXP/EN-US/scancode.exe
  
以上方法对ps2键盘有效,usb键盘的scancode map跟ps2键盘不一样,对照表在这儿:
http://www.microsoft.com/hwdev/download/tech/input/translate.pdf

http://www.i170.com/Article/83885/trackback

评论:

发表评论: