Jump to content
Sign in to follow this  
ermilemerson

winwaitactive & send help

Recommended Posts

ermilemerson

Sirs and Maams

I am automating an installer.

I need to send "!n" after the installation process completed.

The problem is.. I can't use WinWaitActive because the window name doesn't change after the installation process.

Is there other command like ButtonWaitActive or something that I can use before my Send("!n") command?

I don't want to use Sleep() because its unreliable.

Thanks

Share this post


Link to post
Share on other sites
water

If the text in the window changes you can use

WinWait ( "title" , "text" )


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ermilemerson

Is the "text" means the text in the button?

Share this post


Link to post
Share on other sites
water

"Text" means any visible text in the window. You can use the autoit window info tool. The tab "Visible Text" shows the text that can be seen by autoit.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ermilemerson

thank you very much water

Share this post


Link to post
Share on other sites
ermilemerson

uhm water, what if it can't see any visible text or hidden text?

Share this post


Link to post
Share on other sites
water

Can you post a screenshot of a window your script should ignore and one screenshot of a window your script sould accept?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ermilemerson

here's the one to be ignored

untitled.bmp

Share this post


Link to post
Share on other sites
ermilemerson

here's the one to be considered

Share this post


Link to post
Share on other sites
water

WinWait("STAF 3.3.3","&Done")
should wait until the "Done" Button appears. Note: You need the "&" before the underlined letter in the Button.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Arpita

I am also trying to automate installtion which is made using Installanywhere.I tried doing the way water has mentioned but its not working.

autoit window info tool is not showing any data in Visible Text nor even in hidden text.

Is there any other way to automate it?

Thanks in advance

WinWait("STAF 3.3.3","&Done")
should wait until the "Done" Button appears. Note: You need the "&" before the underlined letter in the Button.

Share this post


Link to post
Share on other sites
bo8ster

Use the info tool to get the info then look at the WinX and ControlX functions in the help file.


Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

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  

×