Originally Posted by
Oratic
This is such a great script, have been running for quite a few days and no problems what so ever.
Was thinking what if you add a variant for breaks so it choose a random amount of time between the two numbers like if I put 5-6 minutes it would choose a random time between like 5 minutes and 45 seconds or something along those lines.
Hello Oratic,
I'm glad to hear that the script's working well. As for the break time, I think you can just change the wait on the takeBreak(); procedure into something that adds/subtracts seconds like so:
Simba Code:
//This adds/subtracts seconds from the specified break length
wait((breakL * 60000) + (randomRange(-180, 301) * 1000));
//First converts the specified break length to ms
//Then converts the random to ms before adding itself to the converted break length
//((5 * 60000) + (113 * 1000)) = ((300000ms + 114000ms)) = 414000ms = 414seconds = 06m 54s
Result:
Code:
05m 55s
05m 18s
09m 34s
09m 49s
07m 12s
08m 04s
02m 19s
06m 54s
Successfully executed.