AutoHotKey press key for 3 secs then release and press a second for 3 secs [closed]

StackOverflow https://stackoverflow.com/questions/23356129

  •  11-07-2023
  •  | 
  •  

문제

I want a script that i can run in the background of a game that will press a for 3 secs, then release and press d for 3 secs.

I'm not that familiar with how scripting works so I figured I'd ask for help.

It doesn't need to have a key press to start, cuz i can just double click it on my desktop to start it. i just need it to run the above loop until i stop script.

Is there any way to do this?

도움이 되었습니까?

해결책

? A crude example

Loop
{
Send {a down}
Sleep 3000
Send {a up}
Send {d down}
Sleep 3000
Send {d up}
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top