Jump to content
Sign in to follow this  
Draegon

How to end a script...

Recommended Posts

Draegon

Here is my script:

"

sleep ( 5000 )

while 1

mouseclick ( "left" , 880, 610 , 1 , 10 )

sleep ( 1000 )

mouseclick ( "left" , 739, 580 , 1 , 10 )

mouseclick ( "left" , 800, 580 , 1 , 10 )

mouseclick ( "left" , 871, 713 , 1 , 10 )

sleep ( 8000 )

mouseclick ( "left" , 100, 80 , 1 , 10 )

WEnd

"

All I need now is how to finish it...It goes on and on and I can't quit the program nor do I know how, so how do I trigger the key F4 to stop my script?

Share this post


Link to post
Share on other sites
reb

Hi

This will do it for you

HotKeySet("{f4},", "GetOut")

sleep ( 5000 )

while 1

mouseclick ( "left" , 880, 610 , 1 , 10 )

sleep ( 1000 )

mouseclick ( "left" , 739, 580 , 1 , 10 )

mouseclick ( "left" , 800, 580 , 1 , 10 )

mouseclick ( "left" , 871, 713 , 1 , 10 )

sleep ( 8000 )

mouseclick ( "left" , 100, 80 , 1 , 10 )

WEnd

Func GetOut()

Exit

EndFunc

REB


MEASURE TWICE - CUT ONCE

Share this post


Link to post
Share on other sites
omikron48

This was already answered in your last thread.

Share this post


Link to post
Share on other sites
Draegon

THANKS SO MUCH!

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  

×