重映射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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值