nsvolante Posted October 16, 2012 Share Posted October 16, 2012 Hey guys, im making an auto installer and half way through the installation it just stops the installation even though the name of the window only changes a bit. WinWait ( "Oracle Universal Installer: Product-Specific Prerequisite Checks") WinActive ( "Oracle Universal Installer: Product-Specific Prerequisite Checks") WinActivate ( "Oracle Universal Installer: Product-Specific Prerequisite Checks") Send("!N") WinWait ( "Oracle Universal Installer: Summary") WinActive ( "Oracle Universal Installer: Summary") WinActivate ( "Oracle Universal Installer: Summary") Send("!N") The window it wont "use" is the last one, summary. I change windows many times before that so i dont understand why it doesnt work, ive confirmed the name with the AutoIt info tool and its correct. Ive thought about using mouseclick, but im not sure if i should use that, because i might run this on computers that have different resolutions, which might cause issues? Im not sure what to do or try. Link to comment Share on other sites More sharing options...
FireFox Posted October 16, 2012 Share Posted October 16, 2012 (edited) Hi, There might be multiple wnds with that title, you need to find the handle of the active window first, then use it even if the title changes. Edit : oh and Welcome to the autoit forum ! $hWnd = WinGetHandle("[active]") Br, FireFox. Edited October 16, 2012 by FireFox Link to comment Share on other sites More sharing options...
Colyn1337 Posted October 16, 2012 Share Posted October 16, 2012 (edited) Try adding at the start of your script... opt("wintitlematchmode", 2) And then looking for just "oracle installer" or something like that........ The match mode of 2 tells winwait and winactivate to search for your parameter in the whole string of the title. So if the title is "this is the greatest program" and you do a winactivate("greatest") it'll catch that title. Edited October 16, 2012 by Colyn1337 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