Answers:
好的,我有一个不完美的解决方法:
Capslock::Control ;--Holding Caps = holding Ctrl
Capslock Up:: ;--If you press Caps fast, it types "No"
SendInput, {Control Up} ;--For stability
If A_TimeSincePriorHotkey < 100 ;--Vary the time as it suits you
{
Sendinput, No ;--Replace with what you want Caps to do on its own
}
Else
return
return
如果按下Caps超过100 ms,然后释放它,则不会发生任何事情。如果按下它的时间少于100毫秒,然后释放它,它将输入“否”。如果按住任意按键,它将执行控制+键。如果你按住Caps小于100ms并且在释放Caps之前设法按任意键,它将执行control + Key并输入“No”。你可以改变时间。这是我能做的最好的,也许还有更好的方法。
我用C ++编写了一个程序来做这件事。它重新映射了Apps密钥而不是Capslocks,但修改它将是微不足道的。源代码(和更多信息)在github上 https://github.com/russelldavis/KeyFix4000