Sign in to follow this  
Followers 0
d2player15

question about looping

6 posts in this topic

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.

Share this post


Link to post
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. :)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

Edited by d2player15

Share this post


Link to post
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

:)

Share this post


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
Sign in to follow this  
Followers 0