Want the loop to avoid kick from game. Want any two button from w, a, s, d to pressed after every few interval.
[Mod edit: Moved topic from 'Tutorials (v2)'.]
Want to write script for continues loop
-
- Posts: 1
- Joined: 07 Jan 2024, 03:43
Re: Want to write script for continues loop
Welcome to this AutoHotkey forum!
Code: Select all
#Requires AutoHotkey v2.0
F3:: {
Static on := False, interval := 900
SetTimer(go, interval * on ^= True), (on) && go()
}
go() {
SetKeyDelay 25, 25
Loop 2
SendEvent SubStr("wasd", Random(1, 4), 1)
}
Who is online
Users browsing this forum: adam86shadow and 11 guests