The script worked just fine, So i worked with a little GUI, I've removed all keyboard Hotkeys and made it with buttons.
I got a Button that starts the Loop (just all the fishing actions you need)
I got one that Quits the script.
And i want one more that Stops the loop.
My question is:
How do i Break the loop with a button trigger?
I tried this:
Code: Select all
lbBreak:
Break
return
And i tryed To pasue the sript with rhe following label:
Code: Select all
lbPause:
Pause
return
Code: Select all
;GUI Buttons
;---------------
;-----------------------------
Gui, Add, Button, x25 y50 w60 h20 glbStart, Start
Gui, Add, Button, x100 y50 w60 h20 glbPause, Pause
Gui, Add, Button, x175 y50 w60 h20 glbQuit, Quit
return
;GUI Labels
;---------------
;-----------------------------
lbStart:
loop,
{
;here goes the loop
}
return
lbPause: ;*****************************************************************************************************************
pause ;I want this to ''Break the loop'', so if I want to start the loop again, just hit the button ''Start''
return ;*****************************************************************************************************************
lbQuit:
ExitApp
return