mercredi 12 décembre 2018

HiroMacro - how to setup random times (sleep)

I hope someone can help me, I'm going crazy. I'm using this app with this xoding language: http://prohiro.com/?page_id=399

In the link above, i'm refering to point 4.2.8 & 4.2.13. i want to merge these 2 bits of code together

How do I randomise sleep?

For example:

I want to click a button 1 then button 2. The time between button1 & button2 needs to be randomly chosen from between 1 seconds and 10 seconds.

This is all I could find... rand sleep 1000 10000

Or

Sleep math.random(1000,10000)

Would this work?

Thank you so much




Aucun commentaire:

Enregistrer un commentaire