Jump to content

How to pause a script?


Guest -mihkel-
 Share

Recommended Posts

Guest -mihkel-

My script code looks like this:

MsgBox, 4, Staadion, Hakkad jooksma?
IfMsgBox, NO, Goto, denied


adlibon

blockinput, on


repeat, 120

mousemove, 1022, 635
sleep, 100
leftclick, 1022, 635
sleep, 100

mousemove, 722, 550
sleep, 100
leftclick, 722, 550
sleep, 3000

endrepeat


denied:
Exit

How can I pause(or stop) it while it's running? Do I have to add something to the script? If so, then what?

Thanks in advance.

Mihkel.

Link to comment
Share on other sites

  • Developers

How can I pause(or stop) it while it's running? Do I have to add something to the script? If so, then what?

Thanks in advance.

Mihkel.

Open the Helpfile.

Look for HotKeySet()

Check out the example for this function.

:lmao:

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

And that's what I just did and it says "No topics found."

Which helpfile have you openend ?

Mine gives multiple hits and the top one is the one you need.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest -mihkel-

Lol, stupid me - I used the help file for AutoIt2. I'm gonna hit myself for that.

Got it to work now. Thanks anyway.

Edited by -mihkel-
Link to comment
Share on other sites

MsgBox, 4, Staadion, Hakkad jooksma?
IfMsgBox, NO, Goto, denied
adlibon

blockinput, on
repeat, 120

mousemove, 1022, 635
sleep, 100
leftclick, 1022, 635
sleep, 100

mousemove, 722, 550
sleep, 100
leftclick, 722, 550
sleep, 3000

endrepeat
denied:
Exit

You got this to work ???

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...