Random timer

08/26/2016 18:08 logical691#1
removed
08/26/2016 22:13 Moneypulation#2
You can use an Adlib function which checks every second if the script has run long enough, so it can terminate immediately or change the state of a boolean variable so the script can run its last loop to the end
08/27/2016 00:05 logical691#3
removed
08/27/2016 00:33 elmarcia#4
Code:
   Do
   ...
 $Seconds = $endtime - Round($diff/1000)
If TimerDiff($time) > ($endtime * 1000) Then ;Why $endtime here ? shouldn't be $Seconds??
   ...
   Until IsArray($Pix) ; This will exit when found color green, is it OK?
08/27/2016 11:16 logical691#5
Removed all my comments because the original question is not being answered so i shall figure it out myself.

Edit:
Done, i was overthinking what i had to do.

/closed
08/28/2016 22:51 Devsome#6
#request to close