Timer to break until loop?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
c4p
Posts: 21
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 (v1)”

Who is online

Users browsing this forum: Google [Bot], Rohwedder, tabr3 and 273 guests