![如何修复笔记本电脑上按键太敏感的问题?使用 Autohotkey 解决?](https://linux22.com/image/1614669/%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%E7%AC%94%E8%AE%B0%E6%9C%AC%E7%94%B5%E8%84%91%E4%B8%8A%E6%8C%89%E9%94%AE%E5%A4%AA%E6%95%8F%E6%84%9F%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%9F%E4%BD%BF%E7%94%A8%20Autohotkey%20%E8%A7%A3%E5%86%B3%EF%BC%9F.png)
我那台老旧的戴尔 Latitude D530 的键盘已经很旧了,各个按键都开始坏了……]附近的按键Enter变得超级敏感——即使我轻轻触碰它,它也会触发……所以每次我移动手指时它都会触发,这很烦人。不知道该怎么办,我尝试清洁按键下方的所有东西,但没有用。
那么,我想,是否可以编写一个 Autohotkey 脚本,使得只有按住一定时间(预定义时间)才会触发该键?
答案1
按住]键0.2秒以上即可发送:
$]:: ; the dollar prefix forces the keyboard hook to be used
KeyWait, ], T0.2 ; wait 0.2 seconds for ] to be released
If (!ErrorLevel) ; if the command isn't timed out
return ; do nothing
Send ] ; otherwise send the key
return