Jump to content

Recommended Posts

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 post
Share on other sites

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

; 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!")

; Set the counter
$count = 1

; Execute the loop "until" the counter is greater than 5
; 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 post
Share on other sites

I don't get some people...have you ever wondered why the teacher doesn't sit down and do your

school-work and homework for you ? Well, I would imagine it has something to do the fact that it's

not the best way for the students to learn.

EDIT : missing word

Edited by Helge
Link to post
Share on other sites

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

Now, that's nice enough, but if he had searched in the helpfile like I said in my second post, he would

have found it out almost instantly. The problem is that a lot of people are lazy and strange enough find

it easier to sign up on a forum, ask a question and then wait for a reply, instead of doing a very simple

search 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 the

iNu in this case, where he could've learned too find the answers himself. This is what I would've called

a "bjørnetjeneste". I believe it's called disservice in English...

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...