Jump to content

question about looping


Recommended Posts

ok i want it to click in a spot 2 times then click in another spot 30 times and click back at first spot 2 times

here is what i have

MouseClick("Left", 250, 525, 2)

MouseClick("Left", 255, 295, 30)

MouseClick("Left", 250, 525, 2)

those are the spots i want it to click but how do i get it to keep going and going until i stop it with a button or something?

i would really like some help on this i am kinda new at this.

Link to comment
Share on other sites

While <Expression>... Wend. Also Do...Until <Expression>

Look them up in the helpfile.

Also, look up _IsPressed. Should be satisfactory with a do... until loop. :)

Link to comment
Share on other sites

i looked up While <Expression>... Wend. Also Do...Until <Expression> i didnt understand what to do. is there anyone that can walk me threw this? i didnt think it would be too hard

Unsure how someone can fail to put together 4 freaking lines of code.

#include <Misc.au3>
Do
;Stuff
Until _IsPressed ("23");End Key
Edited by Bert
Link to comment
Share on other sites

well im greatful your helping me bout i barly know a thing about autoit so i wasnt sure how to use the do until function ty very much

What could you gather from the helpfile. I see Do..Until, _IsPressed, and Do right there. <exp> would be the _IsPressed Func. Essentially it returns True =1 and False =0. So your expression is in longform persudo is: If _IsPressed () <> 0 Then continue the loop. In short hand on the end of the loop it would be just _IsPressed, similar to saying If True = True then...else...endif

:)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...