【问题标题】:Is there a way to press a button 1000times a second in AHk有没有办法在AHk中每秒按1000次按钮
【发布时间】:2022-08-07 17:36:36
【问题描述】:

嗨,我需要了解如何在一秒钟内按下按钮,例如 b 1000 次或更多 有人可以帮我吗谢谢。

  • 即使您找到了一种方法来做到这一点,必须对其做出响应的软件也不太可能应对。

标签: autohotkey


【解决方案1】:
F1::
WheelDown::Send {b}
Sleep, 1000
Return

当您按下 F1 键时,它将按下“b”键 1 秒钟。

【讨论】:

    【解决方案2】:

    这将使您的脚本尽可能快地发送密钥;谨慎使用。按住 F1 发送垃圾邮件。

    SetBatchLines, -1
    #KeyHistory 0
    ListLines, Off
    SetKeyDelay, -1
    ; Windows Explorer ignores SendInput's simulation of certain navigational hotkeys such as Alt + ←
    SendMode Input
    
    F1::
        while GetKeyState("F1", "P")
        {
            Send, A
        }
    return
    

    【讨论】:

      猜你喜欢
      • 2019-10-04
      • 2011-08-01
      • 2022-01-06
      • 1970-01-01
      • 2020-06-09
      • 1970-01-01
      • 2019-08-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多