I once again have a problem. I have a function in which I create a GUI with a text to display a 5sec timer. But it says "A control's variable must be global or static".
Code: Select all
GuiShow()
{
Gui, SleepWarning:Add, Text, vCountdown, 5
Gui, SleepWarning:Show, Center, SleepWarning
Sleep, 1000
GuiControl, , Countdown, 4
Sleep, 1000
GuiControl, , Countdown, 3
Sleep, 1000
GuiControl, , Countdown, 2
Sleep, 1000
GuiControl, , Countdown, 1
Sleep, 1000
GuiControl, , Countdown, 0
Sleep, 250
...
}