BillSchulze Posted September 11, 2009 Share Posted September 11, 2009 I am having issues having winwait active continuing in 2 different install programs.I have attached both scripts and screenshots with the screen it doesn't do anything on as well as window info.Thanks in advance for any help!!!! Been banging my head against the wall for the last 2 days.Results Plusrun("\\fs1\staff$\Databases\results plus\wrksttn\rpupdt.exe")WinWaitActive("resultsplus","This program will install resultsplus!")send("!n")Hangs HereWinWaitActive("resultsplus","Folder") send("!n")WinWaitActive("resultsplus! Standard Edition","Network Directory")send("!n")WinWaitActive("Select Program Manager Group","Please select the Program Manager Group")send("{ENTER}")WinWaitActive("resultsplus! Standard Edition","resultsplus! Standard Edition has been successfully")send("!f")run("\\fs1\packages$\smc\results plus\rpodbc.reg")WinWaitActive("Registry Editor")send("!y")WinActivate("Registry Editor","Successfully")send("{ENTER}")QSPrun("\\qsp_server\2009\QSP install\installshield\setup.exe")WinWaitActive("InstallShield Wizard","The InstallShield® Wizard will install QSP 2009 ")send("!n")WinWaitActive("InstallShield Wizard","PROGRAM LICENSE AGREEMENT")send("!y")WinWaitActive("InstallShield Wizard","What kind of install do you wish to do?")send("{DOWN 3}")send("!n")WinWaitActive("InstallShield Wizard","Where is QSP remotely installed?")send("\\qsp_server\qsp\")send("{ENTER}")WinWaitActive("Question")send("!y")WinWaitActive("Question","QSP Manager requires some reporting run-time")send("!y")Hangs HereWinWaitActive("InstallShield Wizard","Configuring",10)send("!n")WinWaitActive("InstallShield Wizard","Setup has finished installing QSP 2009")send("{ENTER}")run("\\qsp_server\qsp\Update.bat")WinWaitActive("RegSvr32","ok")send("{ENTER}")WinWaitActive("RegSvr32","ok")send("{ENTER}")WinWaitActive("RegSvr32","ok")send("{ENTER}") Link to comment Share on other sites More sharing options...
water Posted September 11, 2009 Share Posted September 11, 2009 Do you have AutoItSetOption( "WinTitleMatchMode",x)somewhere in your script? Does the window really become active? Could you try to replace WinWaitActive("resultsplus","Folder")withWinWait("resultsplus","Folder") WinActivate("resultsplus","Folder") My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
BillSchulze Posted September 11, 2009 Author Share Posted September 11, 2009 Do you have AutoItSetOption( "WinTitleMatchMode",x)somewhere in your script? Does the window really become active? Could you try to replace WinWaitActive("resultsplus","Folder")withWinWait("resultsplus","Folder") WinActivate("resultsplus","Folder") No I don't have AutoItSetOption( "WinTitleMatchMode",x)somewhere in your script? I tried replacing WinWaitActive("resultsplus","Folder")withWinWait("resultsplus","Folder") WinActivate("resultsplus","Folder") Same result...if i click the next button, then it does continue...seems to be a timing issue. Link to comment Share on other sites More sharing options...
ctyankeeinok Posted September 11, 2009 Share Posted September 11, 2009 (edited) Does it even accept a !n? What if you manually type Alt-n instead of clicking Next with the mouse? Instead of the Send command, you could also try :ControlClick("resultsplus","Folder","[Text:&Next >]","Primary") Edited September 11, 2009 by ctyankeeinok Link to comment Share on other sites More sharing options...
BillSchulze Posted September 11, 2009 Author Share Posted September 11, 2009 Does it even accept a !n? What if you manually type Alt-n instead of clicking Next with the mouse? Instead of the Send command, you could also try : ControlClick("resultsplus","Folder","[Text:&Next >]","Primary") It will accept !n, but it also doesn't accept the mouse click control. Link to comment Share on other sites More sharing options...
ctyankeeinok Posted September 11, 2009 Share Posted September 11, 2009 the question I have then is it not recognizing the window or not recognizing the Send. If you put a MsgBox(,0,"","AutoIT sees the window") after the WinWaitActive, and the message box appears, then it is a send problem. Otherwise it is a problem seeing the window. Link to comment Share on other sites More sharing options...
BillSchulze Posted September 11, 2009 Author Share Posted September 11, 2009 the question I have then is it not recognizing the window or not recognizing the Send. If you put a MsgBox(,0,"","AutoIT sees the window") after the WinWaitActive, and the message box appears, then it is a send problem. Otherwise it is a problem seeing the window.Nope, it isn't seeing the window. Link to comment Share on other sites More sharing options...
ctyankeeinok Posted September 11, 2009 Share Posted September 11, 2009 Hmmm... How about changing the search text: WinWaitActive("resultsplus","Setup will install") If that does not work, then add the following at the beginning of the script (changes search to look for substrings instead of start with...): AutoItSetOption( "WinTitleMatchMode",2) 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