`

重映射Thinkpad 4X30K12182 蓝牙键盘的功能键为F1 ~ F12

 
阅读更多
Thinkpad 4X30K12182 居然连说明书都没有。。。

系统win10,试了官方驱动:http://support.lenovo.com/us/en/documents/pd026744
完全没反应,
想用官方驱动的看这篇文章:http://www.cnblogs.com/devymex/p/3902794.html

linux或mac 可以试试:https://github.com/lentinj/tp-compact-keyboard

最后只好用Autohotkey对按键进行重映射,也只是部分解决了问题;
但至少调试程序用的F5,F6,F11还是可以用的; 但组合键还是不行。。。

入门基础见:https://autohotkey.com/docs/Tutorial.htm#s2

autohotkey的按键映射表见:https://autohotkey.com/docs/KeyList.htm

查看特殊按键的键值:
https://autohotkey.com/docs/KeyList.htm#SpecialKeys
https://autohotkey.com/docs/commands/_InstallKeybdHook.htm
也就是写一个一行的autohotkey程序,然后在历史中查看
#InstallKeybdHook



按键映射的程序代码如下(下载一个autohotkey后可以双击运行.ahk文件)
#SingleInstance force  ; 重新启动该文件会加载修改过的.ahk文件

; auther  LC

; 重映射Thinkpad 4X30K12182 蓝牙键盘的功能键为F1 ~ F12
; remap Thinkpad 4X30K12182 blue tooth keyborad Fn keys to F1 ~ F12 ; 
; save this file as thinkpadRemap.ahk and install autohotkey to run it


; 不想重映射哪个按键就在那一行前面加一个分号
; comment any line with comma before the line to disable the key map

Volume_Mute:: send {F1}

Volume_Down:: send {F2}

Volume_Up:: send {F3}

Media_Prev:: send {F4}

Media_Play_Pause:: send {F5}

Media_Next:: send {F6}

Browser_Back:: send {F7}

Browser_Home:: send  {F8}

AppsKey:: send {F9}

<#<+F21:: send {F10} ;工作的不太好,但貌似勉强能用  works but has side effect

<!<^Tab:: send {F11}

;<#l:: send {F12} ;实测无效   not work, still lock the screen although it will send F12

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics