Jump to content

Major issues with winwaitactive


 Share

Recommended Posts

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

Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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

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