qwertylol Posted April 17, 2007 Posted April 17, 2007 Do Sleep (1000) Until WinExists ( "Firefox" ) == 0 What I want to to wait until a window DOES NOT exist, yet we don't have a command ready to do that. The above does not work. How do I do it properly?
Generator Posted April 17, 2007 Posted April 17, 2007 Do Sleep(1000) $WinExist=WinExists("Firefox") Until $WinExist=0
PsaltyDS Posted April 17, 2007 Posted April 17, 2007 Or... WinWaitClose("Firefox") Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
gamerman2360 Posted April 17, 2007 Posted April 17, 2007 Opt("WinTitleMatchMode", 2) Do Sleep (1000) Until WinExists ( "Firefox" ) == 0
ResNullius Posted April 19, 2007 Posted April 19, 2007 Or more concisely : Opt("WinTitleMatchMode", 2) Do Sleep (1000) Until NOT WinExists ( "Firefox" ) I use this kind of construct all the time and find the "NOT" makes code a little easier to follow
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now