How to use timer

Ask gaming related questions
Kranksrawrxz1
Posts: 1
Joined: 26 Jul 2020, 02:47

How to use timer

26 Jul 2020, 02:54

I would like to set my loop to repeat lets say 20 times and stop, afterwards use a single key to use a skill. Then the whole loop repeat the whole process again. However i can't seem to make it work

F6::
Settimer,Loop1, 5000
Return

Loop1:
{
Toggle:=!Toggle

While, Toggle
{
Commands....
}
Send, x
}
Return
Rohwedder
Posts: 3396
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How to use timer

26 Jul 2020, 03:17

Hallo,
perhaps:

Code: Select all

F6::
No := 0
Settimer,Loop1, 5000
Return
Loop1:
IF (++No = 20)
{
	Send, x
	No := 0
}
Return
I didn't know what that malfunctioning Toggle was all about.
Guessing the right function from scripts with wrong function is difficult!

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 18 guests