【发布时间】:2021-09-21 17:53:06
【问题描述】:
我不知道如何对 AutoHotKey 进行编程,但我认为这对于会的人来说会很容易。我的键盘有缺陷,当我按下它时它会重复 E 键,这违背了我的意愿。我按 E 并输入 EE 或 EEE。这是解决这个问题的唯一关键。感谢您的帮助。
【问题讨论】:
标签: windows keyboard autohotkey
我不知道如何对 AutoHotKey 进行编程,但我认为这对于会的人来说会很容易。我的键盘有缺陷,当我按下它时它会重复 E 键,这违背了我的意愿。我按 E 并输入 EE 或 EEE。这是解决这个问题的唯一关键。感谢您的帮助。
【问题讨论】:
标签: windows keyboard autohotkey
*e:: ;When 'e' is pressd (with or without modifiers like `Shift` or `Alt`)
Send e ;Send 'e' to the computer
Sleep 1000 ;Then delay for a duration of one second [change to taste]
return
编辑:
上面的代码在与 e 一起使用时会“吃掉”所有修饰键,从而阻止 Shift+e、Alt+e 等。为了解决这个问题,我们可以只使用热键Blind Send e,这将阻止它抑制按住修饰符。
新代码:
*e:: ;When 'e' is pressd (with or without modifiers like `Shift` or `Alt`)
Send {Blind}e ;Send 'e' blindly to the computer
Sleep 1000 ;Then delay for a duration of one second [change to taste]
return
【讨论】: