1

在 AutoHotkey 中,我该如何执行以下操作:

在同时按下 SPACE 和“[A, S, D, W] 中的任一个或组合”时,每 X 毫秒发送一次 LSHIFT 键;这样做直到没有按下 SPACE 和 A、S、D、W。

我是初学者。我尝试了多种方法,但它根本不起作用。

任何帮助将非常感激!

我试过这个,它什么也没做:

问::

循环
{
If GetKeyState("Space", "P") && GetKeyState("w", "P")

{
Send, {LShift}
Sleep, 500

If Not GetKeyState("Space", "P") && GetKeyState("w", "P")

 {
  Pause
  }

}

}

4

1 回答 1

2

尝试这个

x := 500 ;your x

~Space::
sleep, 500  ;this is extra time given to you and not X . Dont Edit.
loop,
{
if GetKeyState("W","p") or GetKeyState("A","p") or GetKeyState("S","p") or GetKeyState("D","p")
    Send, {LShift}
else
    break
sleep, x
}
return

享受

于 2013-05-18T06:56:21.367 回答