Random key press Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Aeon
Posts: 1
Joined: 15 Jun 2021, 08:15

Random key press

Post by Aeon » 15 Jun 2021, 08:20

So I am using this script to prevent an afk kick but is it possible to randomly right-click after a while still keeping the random jumps?

Code: Select all

$Home::
#Persistent
SetTimer, PressTheKey, 60000
Return

PressTheKey:
Send, {Space}
Return
User avatar
mikeyww
Posts: 26856
Joined: 09 Sep 2014, 18:38

Re: Random key press  Topic is solved

Post by mikeyww » 15 Jun 2021, 08:52

Code: Select all

Home::
SetTimer, PressTheKey, 60000
Start:
Random, rand, 10, 50
SetTimer, Ouch, % -1000 * rand
Return

PressTheKey:
Send {Space}
Return

Ouch:
Click, R
Gosub, Start
Return
Post Reply

Return to “Gaming Help (v1)”