Code:
GuiCreate("Click!",200,220,399,140)
$button2=GuiCtrlCreateButton("Stop",117,57,52,101)
$button1=GuiCtrlCreateButton("Start",20,57,52,101)
$button3=GuiCtrlCreateButton("beenden" ,20,160,150,40)
$input1=GuiCtrlCreateInput("Time in sec.",20,35,150,20)
$msg=GuiGetMsg()
If $msg=-3 Then Exit
If $msg=$button1 Then button1()
If $msg=$button2 Then button2()
GuiSetState()
While 1
$msg=GuiGetMsg()
IF $msg=$button3 Then button3()
WEnd
$time=$input * 1000
;;;;;
Func button1()
While 1
MouseClick("left")
sleep ("$time")
WEnd
EndFunc
;;;;;
Func button2()
exit func button1()
EndFunc
;;;;;
Func button3()
Exit
EndFunc