Jump to content

WinWait/WinExists failing


Recommended Posts

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")

 

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

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