I need a script

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
AndrewPinsky
Posts: 1
Joined: 01 Apr 2023, 19:23

I need a script

Post by AndrewPinsky » 01 Apr 2023, 19:26

How would i make a script that holds down "a" for 28 seconds, then holds down "d" for 28 seconds, and repeats that until turned off?

User avatar
mikeyww
Posts: 27107
Joined: 09 Sep 2014, 18:38

Re: I need a script

Post by mikeyww » 01 Apr 2023, 19:43

Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
Loop
 Loop Parse 'ad'
  Send('{' A_LoopField ' down}'), Sleep(28000), Send('{' A_LoopField ' up}')
More

Post Reply

Return to “Ask for Help (v2)”