根据是否单独按下来重新映射密钥


3

我知道如何使用Autohotkey重新映射密钥和密钥组合。如果我绑定 大写锁定 按Ctrl 大写锁定 + 任意键 会工作的 按Ctrl + 任意键

我怎么能绑定 大写锁定 单独到另一个热键( 按Ctrl + 1 ,例如),但绑定 大写锁定 + 任意键 按Ctrl + 任意键

Answers:


1

好的,我有一个不完美的解决方法:

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”。你可以改变时间。这是我能做的最好的,也许还有更好的方法。


很有创意。 =)
Malabarba

谢谢!如果您找到更好的方法,请告诉我。
Cerberus

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.