【问题标题】:How to make an AutoHotKey script to fix my keyboard repeating key problem?如何制作 AutoHotKey 脚本来修复我的键盘重复键问题?
【发布时间】:2021-09-21 17:53:06
【问题描述】:

我不知道如何对 AutoHotKey 进行编程,但我认为这对于会的人来说会很容易。我的键盘有缺陷,当我按下它时它会重复 E 键,这违背了我的意愿。我按 E 并输入 EE 或 EEE。这是解决这个问题的唯一关键。感谢您的帮助。

【问题讨论】:

    标签: windows keyboard autohotkey


    【解决方案1】:
    *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+eAlt+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
    

    【讨论】:

    • 完美!谢谢!
    • 有一个小问题,我无法输入大写 e,你能改进一下吗?谢谢!
    • 哦,你是对的,我完全忘记了它会阻止修饰键(包括 Shift)与“e”一起使用。我想我会做得更好并修复代码,以便在使用热键时它仍会发送所有适用的修饰键。感谢您指出这一疏忽!
    • 谢谢你!
    • 当我一段时间不使用 E 键时,它会在我输入它时忽略它,直到我多次输入它...有解决办法吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-25
    • 1970-01-01
    • 2013-09-26
    • 2013-03-03
    • 2020-07-06
    • 1970-01-01
    相关资源
    最近更新 更多