Mouseclick Randomly in a variable time of 10-20min

Get help with using AutoHotkey and its commands and hotkeys
Vaklev
Posts: 47
Joined: 04 Mar 2019, 13:58

Mouseclick Randomly in a variable time of 10-20min

Post by Vaklev » 09 Nov 2019, 01:44

Hi guys, I'm trying to loop a script to automatically click the mouse anytime between 10 min and 20 min once started, and then repeat the timer to click between another 10 and 20 min and so on, any ideas how I can do that?

AHKStudent
Posts: 909
Joined: 05 May 2018, 12:23

Re: Mouseclick Randomly in a variable time of 10-20min

Post by AHKStudent » 09 Nov 2019, 02:43

Code: Select all

Loop, {
Random, SleepAmt, 10, 20
Sleep, % (SleepAmt * 60000)
Click
}

Post Reply

Return to “Ask For Help”