AmarjeetSinghMatharu Posted December 7, 2016 Share Posted December 7, 2016 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: Link to comment Share on other sites More sharing options...
meoit Posted December 7, 2016 Share Posted December 7, 2016 Something like as: Global $TAB_1 = GUICtrlCreateTab('Tab 1', 5, 5, 300, 100) ;Use tab: GUICtrlSetState(@SW_SHOW, $TAB_1) Link to comment Share on other sites More sharing options...
water Posted December 7, 2016 Share Posted December 7, 2016 @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. AmarjeetSinghMatharu 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.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 (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 More sharing options...
AmarjeetSinghMatharu Posted December 8, 2016 Author Share Posted December 8, 2016 @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. Link to comment Share on other sites More sharing options...
water Posted December 8, 2016 Share Posted December 8, 2016 Glad you got it working My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.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 (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 More sharing options...
AmarjeetSinghMatharu Posted December 18, 2016 Author Share Posted December 18, 2016 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. Link to comment Share on other sites More sharing options...
LarsJ Posted December 19, 2016 Share Posted December 19, 2016 A ribbon control is difficult to automate with standard functions. For a start you can take a look at How can I click on the ribbon menu item. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now