Sign in to follow this  
Followers 0
GaryB

Multiple windows with the same name

6 posts in this topic

I am trying to change a setting after using Autoit to automatically install a program. The problem is that during the install there are three windows that pop up for user input and all three have the same name "xxx VPN".

I am using WinWait ("xxx VPN") to determine when the window is open. The problem is that it runs when the first wndow opens. Is there a way to loop and wait for the third window? I can't use the sleep command since I don't know how long it will take for the user to click on the button to proceed to the next window.

Thanks for any help!

Share this post


Link to post
Share on other sites



If there is unique text on the third window you can use

winwait("xxx VPN","unique text")

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

Yes there is, I am attaching a image of the window I want. I want to use Autoit to select the Properties button when it is available.

Thanks.

post-49751-1242647454_thumb.jpg

Share this post


Link to post
Share on other sites

Please use the Autoit Window Info tool. Klick on your 3rd window and in the "Visible Text" Tab of the Window Info Tool you can find the text Autoit "sees" and can search for.


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

You could probably use the advanced window matching mode(4) with the class name of the window, unless the other windows have the same class.

Share this post


Link to post
Share on other sites

Thanks to everyone for the great comments and help. I was able to get it to work with the suggestion from water.

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