freelancer Posted October 23, 2005 Posted October 23, 2005 Hi, I was wondering if anyone could help me out with a loop command. I'm trying to run a specific function multiple times. I don't want an infinite loop however. I just want to run it for 30 times. In another "macro language" it was something like this: Loop, 30 { function1() function2() } Can anyone 'translate' this into AutoIt ? I'm using v3. thanks in advance.
GaryFrost Posted October 23, 2005 Posted October 23, 2005 Hi,I was wondering if anyone could help me out with a loop command.I'm trying to run a specific function multiple times. I don't want an infinite loop however. I just want to run it for 30 times.In another "macro language" it was something like this:Loop, 30{function1()function2()}Can anyone 'translate' this into AutoIt ? I'm using v3.thanks in advance. for $x = 1 to 30 function1() function2() next SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
freelancer Posted October 23, 2005 Author Posted October 23, 2005 (edited) Great, thanks a lot! One question: is that it? You're creating the variable $x and using the for statement, shouldn't it be in a greater part then? Edited October 23, 2005 by freelancer
/dev/null Posted October 23, 2005 Posted October 23, 2005 Great, thanks a lot! One question: is that it? You're creating the variable $x and using the for statement, shouldn't it be in a greater part then?Hi freelancer, you should read the following section of the help file: AutoIT -> Language Reference -> Loop Statements.CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
freelancer Posted October 23, 2005 Author Posted October 23, 2005 I didn't understand that part up until now with that example, thanks indeed.
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