fergicide Posted March 31, 2015 Share Posted March 31, 2015 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 More sharing options...
Tekk Posted March 31, 2015 Share Posted March 31, 2015 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 More sharing options...
jdelaney Posted April 2, 2015 Share Posted April 2, 2015 Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Shutdown'', ''Hi!'')"') WinWait("Shutdown") MsgBox(0, "Title", "Window exists") IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
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