Sign in to follow this  
Followers 0
BillSchulze

Major issues with winwaitactive

8 posts in this topic

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 Plus

Posted Image

run("\\fs1\staff$\Databases\results plus\wrksttn\rpupdt.exe")

WinWaitActive("resultsplus","This program will install resultsplus!")

send("!n")

Hangs Here

WinWaitActive("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}")

QSP

Posted Image

run("\\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 Here

WinWaitActive("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}")

Share this post


Link to post
Share on other sites



Do you have

AutoItSetOption( "WinTitleMatchMode",x)
somewhere in your script?

Does the window really become active? Could you try to replace

WinWaitActive("resultsplus","Folder")
with
WinWait("resultsplus","Folder")
WinActivate("resultsplus","Folder")

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Do you have

AutoItSetOption( "WinTitleMatchMode",x)
somewhere in your script?

Does the window really become active? Could you try to replace

WinWaitActive("resultsplus","Folder")
with
WinWait("resultsplus","Folder")
WinActivate("resultsplus","Folder")

No I don't have
AutoItSetOption( "WinTitleMatchMode",x)
somewhere in your script?

I tried replacing

WinWaitActive("resultsplus","Folder")
with
WinWait("resultsplus","Folder")
WinActivate("resultsplus","Folder")

Same result...if i click the next button, then it does continue...seems to be a timing issue.

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by ctyankeeinok

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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)

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