Code: Select all
Gui, New, , Update Text Demo
gui, add, text, x20 y20 w100 h16 vtimertext, --------
Gui, show, w600 h300
TimePassed = 0
SetTimer, UpdateTime, 3000
gosub UpdateTime
Return
; The following label receives control when the user closes the GUI window.
GuiClose:
{
ExitApp
}
Return
UpdateTime:
{
TimePassed := (TimePassed + 1)
TrayTip, Debug, %TimePassed%
GuiControl,,timertext,%TimePassed%
}
Return
Could someone please point out if I am doing something wrong.
Thanks.