AmarjeetSinghMatharu

How to access multiple System.Windows.Forms.TabControls and child controls on each TabPage window handles.

7 posts in this topic

Hello All,

I request your guidance approach for the following problem.

I need to automate a desktop application which has settings window with multiple Tab Page control windows. Viz Dot.Net : System.Windows.Forms.TabControls.

 

On popup there will be first Tab Page and its child contols are seen on the desktop and their handles are retreivable but the second Tab Page (hidden behind) is not identifiable by the AutoIt.

I can work on the visible Tab Page window through the wise post avilable below but I can not look for the hidden Tab windows and controls unless make it visible by autromated mouse clicks identifying the coordinates (Which is a work around).

Kindly let me know the approach as you are the best of knowledgable expertise.

1. For simplification Assume Tab  Window similer to the - "LAN area connection Properties" window for understanding which has 2 tabs pages 1. Networking 2, Sharing.

2. On bringing up the LAN properties only Networking tab is visible but sharing tab is hidden behind.

3. Need is to automate a checkbox in sharing Tab Page hidden behind the Networking window with AutoIt.

Please let me know if you need more information in this regards.

Thanks and Best Regards.

Amarjeet.

amarjeetsinghmatharu@yahoo.com

 

References referred below:

 

Share this post


Link to post
Share on other sites



@meoit ,
this only works for GUIs created by AutoIt.
As I understand the OP he tries to automate a third party GUI.

 

@AmarjeetSinghMatharu,

Welcome to AutoIt and the forum!

I suggest something like this:

ControlCommand("<title>", "<text>", <controlID>, "TabRight", "")

Replace the <> (including the <>) with the values of the window you try to automate.

1 person likes this

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

@Water,

Thankyou veru much for the nice guidance and your welcome greeting!

It works after your suggestions.

Your approach lays down the direction in which I have to study ahead. 

Warm Regards.

Amarjeet.

 

@meoit

Thanks for your responce.

Regards.

Amarjeet.

 

Share this post


Link to post
Share on other sites

Glad you got it working :)


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

Hello All, Hello @Water

I need your inputs for the following as contiuation to the pervious discussions:

I am able to iterate through the tab controls with your given guidance If I am already reached on the first Tab window .

But If I have to first launch the application and then reach on -> Ribbon controls -> then clicking below menu items -> then opening a master Dialog window with many tab controls.

Imagin something like Excel with ribbons child controls clicking on one of ribbon opens up dialog window with inturn have sevaral tab controls to iterate.

Please suggest me the path to reach to this dialog controls.

 

I am able to manage now with the help of Coordinates click method which isn't a good idea.

Thank you very much.

Regards.

Amarjeet.

 

Share this post


Link to post
Share on other sites

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