Randomized Pause

Post here if you need help using Actiona
Post Reply
dad7more
Posts: 2
Joined: 24 Nov 2020, 19:13

Randomized Pause

Post by dad7more »

Is there a way to randomize duration between events? I would like to click the mouse at random intervals between 10 and 20 seconds. For example, is there a way to make the pause between loops last a random amount of time?
dad7more
Posts: 2
Joined: 24 Nov 2020, 19:13

Re: Randomized Pause

Post by dad7more »

So I found this script in a previous thread, but it interrupts my loop. I used it with 'Pause' and it tells me that in line 3 there is an integer number expected:

t_mini = 20000 // milli seconds
t_maxi= 25000 // idem
t_aleatoire = t_mini +Math.floor( Math.random() * (t_maxi - t_mini+1 )) ;
Execution.pause(t_aleatoire)
Post Reply