ITSky8 Posted January 22, 2008 Posted January 22, 2008 How to allow this loop again and again For $i=1 to n MouseClick(left,30,30) Sleep(2000) Next How to replace the n?
Developers Jos Posted January 22, 2008 Developers Posted January 22, 2008 Look at "While ... Wend" in the Helpfile 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.
ITSky8 Posted January 22, 2008 Author Posted January 22, 2008 How to allow this loop again and againFor $i=1 to nMouseClick(left,30,30)Sleep(2000)NextHow to replace the n?Thx. $i=1While $i>0MouseClick(left,30,30)Sleep(2000)$i=$i+1WEnd
star2 Posted January 22, 2008 Posted January 22, 2008 (edited) Just like the master told you use While-Wend example: HotKeySet ("{F1}", "_exit") ; this is a hotkey to help you execute a function While 1 ; this will make your script loops MsgBox (-1, "test" , "test", 1) WEnd Func _exit() ; simple function to exit the script Exit EndFunc Edited January 22, 2008 by star2 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now