Sign in to follow this  
Followers 0
fergicide

WinWait/WinExists failing

3 posts in this topic

The following code, compiled to x64 exe on Win7, fails to detect the generated window and pop up the second message.  What am I doing wrong?  Thanks!

MsgBox(0, "Shutdown", "This is a test")
WinWait("Shutdown")
MsgBox(0, "Title", "Window exists")

 

Share this post


Link to post
Share on other sites



MsgBox(0, "Shutdown", "This is a test") ;~ This blocks until you press [  OK  ]
WinWait("Shutdown")                     ;~ Since you pressed [  OK  ] the MsgBox exited before you got here.
MsgBox(0, "Title", "Window exists")     ;~ You never get here.  You are still waiting for a window that you closed above…

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