Code:
HotKeySet ("{F5}", "begin")
HotKeySet ("{F8}", "pause")
HotKeySet ("{F9}", "end")
while 1
sleep (1000)
wend
func begin ()
while 1
send ("1")
sleep (1500)
send ("2")
sleep (1500)
send ("3")
sleep (1500)
send ("4")
sleep (1500)
wend
endfunc
func pause ()
while 1
sleep (1000)
wend
endfunc
func end ()
exit
endfunc
As you see F5 will start, F8 will pause and F9 stop script. You can change sleeping time between 1,2,3 and 4 buttons.