Random sleep Topic is solved

Ask gaming related questions (AHK v1.1 and older)
KongKing
Posts: 76
Joined: 22 May 2022, 09:41

Random sleep

Post by KongKing » 26 Aug 2022, 12:00

hi! how to make a random sleep so that it clicks 10 ms for 5-6 s and after 5-6 SEC 30 ms for 3-4 s and then again 10 ms and so on and on

Rohwedder
Posts: 7768
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Random sleep  Topic is solved

Post by Rohwedder » 27 Aug 2022, 01:02

Hallo,
try:

Code: Select all

q::
5_6s:
Random, 5_6s, 5000, 6000
SetTimer, 5_6s,% 5_6s
Period := Period = 30 ? 10 : 30
SetTimer, Click,% Period
Return
Click:
Click
Return
Sleep is a waste of time!

KongKing
Posts: 76
Joined: 22 May 2022, 09:41

Re: Random sleep

Post by KongKing » 27 Aug 2022, 15:34

thanks ;)

Post Reply

Return to “Gaming Help (v1)”