Timer to break until loop?

Get help with using AutoHotkey and its commands and hotkeys
c4p
Posts: 17
Joined: 18 Jan 2017, 18:38

Timer to break until loop?

18 Jan 2017, 19:11

Why would this code not break out of loop?

Code: Select all

global timeleft =  True
Settimer, AbortWait, -3000
Loop
	Sleep, 50
Until (!timeleft)
Msgbox,,,%timeleft%
return

AbortWait: 
timeleft = False
return
kon
Posts: 1756
Joined: 29 Sep 2013, 17:11

Re: Timer to break until loop?

18 Jan 2017, 19:17

timeleft := False

Return to “Ask For Help”

Who is online

Users browsing this forum: anaxio, Bing [Bot], Google [Bot] and 223 guests