iNu Posted January 10, 2007 Share Posted January 10, 2007 I tried to find this, but can't, I guess because it's such a newby question. I was wondering what the syntax for an "infinite" loop would be. I need to look the same mouse click sequences over and over as long as the program is running. Thanks - Vin Link to comment Share on other sites More sharing options...
Helge Posted January 10, 2007 Share Posted January 10, 2007 Searching for "infinite loop" in the helpfile gives you 6 hits. The second looks interesting...To create an infinite loop, you can use a non-zero number as the expression. Link to comment Share on other sites More sharing options...
Joon Posted January 10, 2007 Share Posted January 10, 2007 Typical I use this. While 1 Wend Link to comment Share on other sites More sharing options...
thenewkid Posted January 10, 2007 Share Posted January 10, 2007 if you want t seel a while loop working go look for the examples file for auto it theres a few loop ones in there expandcollapse popup; ; AutoIt Version: 3.0 ; Language: English ; Platform: Win9x/NT ; Author: Jonathan Bennett (jon at hiddensoft com) ; ; Script Function: ; Counts to 5 using a "do" loop ; Prompt the user to run the script - use a Yes/No prompt (4 - see help file) $answer = MsgBox(4, "AutoIt Example", "This script will count to 5 using a 'Do' loop. Run?") ; Check the user's answer to the prompt (see the help file for MsgBox return values) ; If "No" was clicked (7) then exit the script If $answer = 7 Then MsgBox(0, "AutoIt Example", "OK. Bye!") Exit EndIf ; Set the counter $count = 1 ; Execute the loop "until" the counter is greater than 5 Do ; Print the count MsgBox(0, "AutoIt Example", "Count is: " & $count) ; Increase the count by one $count = $count + 1 Until $count > 5 ; Finished! MsgBox(0, "AutoIt Example", "Finished!") ^ one of the ones i love some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with Link to comment Share on other sites More sharing options...
Helge Posted January 10, 2007 Share Posted January 10, 2007 (edited) I don't get some people...have you ever wondered why the teacher doesn't sit down and do yourschool-work and homework for you ? Well, I would imagine it has something to do the fact that it'snot the best way for the students to learn.EDIT : missing word Edited January 10, 2007 by Helge Link to comment Share on other sites More sharing options...
thenewkid Posted January 10, 2007 Share Posted January 10, 2007 i thnk its nice to help new ppl out to ge the grip of things when i was new i spent like a day wundering for the gui buttons work some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with Link to comment Share on other sites More sharing options...
Helge Posted January 11, 2007 Share Posted January 11, 2007 i thnk its nice to help new ppl out to ge the grip of things when i was new i spent like a day wundering for the gui buttons workNow, that's nice enough, but if he had searched in the helpfile like I said in my second post, he wouldhave found it out almost instantly. The problem is that a lot of people are lazy and strange enough findit easier to sign up on a forum, ask a question and then wait for a reply, instead of doing a very simplesearch in the helpfile and get their question a lot faster.So, when you serve their answer on a silver-plate like that you serve nobody any good...not even theiNu in this case, where he could've learned too find the answers himself. This is what I would've calleda "bjørnetjeneste". I believe it's called disservice in English... Link to comment Share on other sites More sharing options...
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