Code: Select all
Gui, Add, Button, x50 y50 w50 h20 gStart, Start
Gui, Add, Button, x+15 y50 w50 h20 gSTop, Stop
Gui, Show,w200 h100, Gui
Return
Start:
Loop, 6
{
MsgBox, One
Sleep, 1500
MsgBox, Two
Sleep, 1500
MsgBox, Three
Sleep, 1500
MsgBox, Four
Sleep, 1500
MsgBox, Five
Sleep, 1500
MsgBox, Six
Sleep, 1500
}
Return
Stop:
;Something to stop the loop in Start label here?
Return