Hey..quick question. Can i make random time intervals? ALso how to more narrow search image

Post here if you need help using Actiona
Post Reply
rhoona
Posts: 1
Joined: 28 Sep 2018, 20:55

Hey..quick question. Can i make random time intervals? ALso how to more narrow search image

Post by rhoona » 28 Sep 2018, 20:57

Hey guys hope someone sees this ha...

situation, i want it to search a page for a white box, but there are multible white boxes in a row...how could i narrow it to click the last one?

also is there a way to make random time intervals? SOmthing like 4000ms - 7000ms inbetween actions i could do?

francois
Posts: 279
Joined: 18 Oct 2010, 10:33
Location: France

Re: Hey..quick question. Can i make random time intervals? ALso how to more narrow search image

Post by francois » 29 Sep 2018, 16:10

Hello,

An example to make random time intervals :

Code: Select all

t_mini = 4000  //  milli seconds
t_maxi= 7000  // idem
t_aleatoire = t_mini +Math.floor( Math.random() * (t_maxi - t_mini+1 )) ;
Execution.pause(t_aleatoire)
François

Post Reply