Sign in to follow this  
Followers 0
Roy2010

Could anyone Help me?

5 posts in this topic

ok i am new to all of this and was wondering if anyone could help me with a little problem i am having

MsgBox(1, "test", "test", 10)

MouseClick( "left", 550,207, 1, 25)

MouseClick( "left", 600,560, 1, 25)

MouseClick( "left", 190,581, 1, 50)

MouseClick( "left", 570,450, 1, 25)

i want to loop the last 4 commands, but i want to be able to press a button to stop it if needed, does anyone know how to do this, i would be ever so gratefull

Thanks

Share this post


Link to post
Share on other sites



ok i am new to all of this and was wondering if anyone could help me with a little problem i am having

MsgBox(1, "test", "test", 10)

MouseClick( "left", 550,207, 1, 25)

MouseClick( "left", 600,560, 1, 25)

MouseClick( "left", 190,581, 1, 50)

MouseClick( "left", 570,450, 1, 25)

i want to loop the last 4 commands, but i want to be able to press a button to stop it if needed, does anyone know how to do this, i would be ever so gratefull

Thanks

What did the helpfile tell you when you looked for "loop" ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

ok i can get it to loop, but how can i put in a comman that will stop it when i want it to?

thanks

Share this post


Link to post
Share on other sites

HotKeySet("{ESC}","_QuitKey")
IF MsgBox(65, @SCRIPTNAME, "Press ok to proceed", 10) = 1 THEN
 WHILE 1
    MouseClick( "left", 550,207, 1, 25)
    MouseClick( "left", 600,560, 1, 25)
    MouseClick( "left", 190,581, 1, 50)
    MouseClick( "left", 570,450, 1, 25)
 WEND
ENDIF
EXIT
;
FUNC _QuitKey()
 MsgBox(48,@SCRIPTNAME,"Terminated by user",5)
 EXIT
ENDFUNC

Something like this.

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