Sign in to follow this  
Followers 0
Drakthor

I need help ending a script

7 posts in this topic

I need help commanding a program to stop running because I want it to continue running until I click Esc key.

So any ideas.

MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(522, 429)
MouseClick("left")
MouseMove(817, 206)
MouseClick("left")
MouseClick("left")
;last 3 lines restart script

;I want an appropriate EndIf type thing to go here to stop app on my command

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

My man.. I want to introduce you to my buddy the loop.

Edited by Simucal

AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)

Share this post


Link to post
Share on other sites

lol I thought bout looking into that

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

lol I thought bout looking into that

hehe try something like this as a smaller version of your script:

HotKeySet("{ESC}", "quit") ;will run the 'quit' function when the escape key is pushed

While 1 ;sets up a loop that will do whatever is in between 'While' and 'WEnd' until ESC is pushed
    MouseMove(522, 429)
    MouseClick("left")
WEnd

Func quit() ; this will run when ESC is pushed (the last 3 steps of your script)
MouseMove(817, 206)
MouseClick("left")
MouseClick("left")
Sleep(1000)
Exit ;exits the script
EndFunc

EDIT: just realised you said u wanted it to continue until you pushed ESC so the updated code should do that

cheers

Edited by fu2m8

Share this post


Link to post
Share on other sites

Here's an ending to your script ...

Posted Image


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

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

I hope that you copy pasted all of those O_o

#Include <Misc.au3>

Do
   MouseClick("left")
   MouseMove(522, 429)
   ;Sleep(50) ;i suggest you have some amount of idle time or else this will make whatever your spamming lag =|
Until _IsPressed("1B") = 1 ;1B = esc

MouseMove(817, 206)
MouseClick("left")
MouseClick("left")
Exit
Edited by Rad

Share this post


Link to post
Share on other sites

hehe try something like this as a smaller version of your script:

HotKeySet("{ESC}", "quit") ;will run the 'quit' function when the escape key is pushed

While 1 ;sets up a loop that will do whatever is in between 'While' and 'WEnd' until ESC is pushed
    MouseMove(522, 429)
    MouseClick("left")
WEnd

Func quit() ; this will run when ESC is pushed (the last 3 steps of your script)
MouseMove(817, 206)
MouseClick("left")
MouseClick("left")
Sleep(1000)
Exit ;exits the script
EndFunc

EDIT: just realised you said u wanted it to continue until you pushed ESC so the updated code should do that

cheers

Thanks I was tring to to something like the but I wus using exit instead of quit but thnz

Share this post


Link to post
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
Sign in to follow this  
Followers 0