Jump to content

do...until not looping lol


eastmus
 Share

Recommended Posts

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

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

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...