i have a long loop cycle
something like 20-30 sec then wait then repeat
how i can break the loop and stop it from outside?
i tried to do something like that
Code: Select all
SetTimer, startTimer, -10
;~ SetTimer, UpdateTimer, 5000
Code: Select all
SetTimer,startTimer, Off
;~ SetTimer,startTimer,-20000
startimer is something like
Code: Select all
startTimer:
loop {
function1()
if xx
function2()
...
...
}
if i use something like
if condition == true break
i have to add that code everywhere (in all loops, functions etc).... a bit ugly
there is an alternative?