Sign in to follow this  
Followers 0
eastmus

do...until not looping lol

3 posts in this topic

#1 ·  Posted (edited)

Do
    MouseClick("left",0,0,1,0)
;   Send("!n")
Until WinWait("Catalyst")

so basically it should keep left clicking in the left upper corner of my screen, right?

what is going wrong?

because i can still drag my mouse somewhere else without autoit placing it back to x/y 0/0

oh PS: the window Catalyst never comes up, until i call it with alt+n, but i put it in comment, so basically it should keep looping

Edited by eastmus

Share this post


Link to post
Share on other sites



Do...Until basically runs the inner code and then the function after Until each time. So you're having it run that code once then wait, change the WinWait to WinActive.


For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites

Do...Until basically runs the inner code and then the function after Until each time. So you're having it run that code once then wait, change the WinWait to WinActive.

Thx!

I didnt know this, it was also not in the helpfile.

works like a charm now!

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