i wanna run 2 timers but using either Sleep or WinWaitClose causes timer "one" here to not a chance to run at all
1. what's going on?
2. what's the workaround?
Code: Select all
one(){
ToolTipTimer("one")
Sleep 3000
i := 0
Loop {
ToolTipTimer(i)
Sleep 500
i++
} Until (i == 20)
}
two() {
ToolTipTimer("two")
Sleep 1000
ToolTipTimer("waiting calc close")
WinWaitClose Calculator
ToolTipTimer("calc closed")
}
SetTimer, one, 1000
SetTimer, two, 2000