BeverlyJones Posted April 22, 2013 Share Posted April 22, 2013 Hi everyone! I'm new here so please go easy on me lol I am trying to create a VB.NET program to automate a few things such as clicking checkboxes and filling textboxes, both of these I can do from following tutorials on this forum. The problem I am having is clicking on different tabs. From using the Info tool I get this information on the control: >>>> Window <<<< Title: Options Class: WindowsForms10.window.8.app.0.2bf8098_r13_ad1 Position: 177, 0 Size: 843, 607 Style: 0x16CC0000 ExStyle: 0x00010100 Handle: 0x0000000000530AE0 >>>> Control <<<< Class: WindowsForms10.SysTabControl32.app.0.2bf8098_r13_ad1 Instance: 1 ClassnameNN: WindowsForms10.SysTabControl32.app.0.2bf8098_r13_ad11 Name: TabControl1 Advanced (Class): [NAME:TabControl1] ID: 2 Text: Position: 12, 12 Size: 803, 513 ControlClick Coords: 70, 13 Style: 0x56010840 ExStyle: 0x00000000 Handle: 0x00000000009E0B56 >>>> Mouse <<<< Position: 90, 55 Cursor ID: 0 Color: 0xDBDBDB I have tried the usual ControlClick function but the ID seems to change all the time, my question is... Is there a way to find the ID on each load then click the control? Sorry if I have not explained myself enough, but I am very new to AutoIt. Many thanks in advance. Bev Link to comment Share on other sites More sharing options...
BeverlyJones Posted April 23, 2013 Author Share Posted April 23, 2013 Sorry to Bump, but any ideas? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 23, 2013 Moderators Share Posted April 23, 2013 BeverlyJones,I am confused. You say you want to write a VB.NET program - yet you post on the AutoIt forum and expect answers? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
BeverlyJones Posted April 23, 2013 Author Share Posted April 23, 2013 Hi, Yes of course, you can add refference to the AutoIt .dll file and use the functions. Or am I way off? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 23, 2013 Moderators Share Posted April 23, 2013 BeverlyJones, All becomes clear - I shall move this to the AutoItX section of the forum. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
BeverlyJones Posted April 23, 2013 Author Share Posted April 23, 2013 Sorry, I am not the best at explaining myself. Anyway.... Would you be able to advise me on how I can solve my problem? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 23, 2013 Moderators Share Posted April 23, 2013 Melba23, I am afraid not as I do not use the AutoIt.dll. But those who do look in this section and should be able to help you - please be patient. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Richard Robertson Posted April 24, 2013 Share Posted April 24, 2013 By the name of the tab control, it is obvious that you are attempting to automate a .Net application and they are naturally difficult to automate using standard Windows' techniques. You'll need to actually use accessibility APIs instead of normal control messages to get the best results. Link to comment Share on other sites More sharing options...
BeverlyJones Posted April 24, 2013 Author Share Posted April 24, 2013 Hi Richard, Thank you for your reply. Would it be possible for you to point me in the right direction. Many thanks in advance. Link to comment Share on other sites More sharing options...
Richard Robertson Posted April 25, 2013 Share Posted April 25, 2013 Since you are using VB.Net, it would be easiest to just use the Windows UI automation objects which are documented here http://msdn.microsoft.com/en-us/library/system.windows.automation.aspx Link to comment Share on other sites More sharing options...
BeverlyJones Posted May 3, 2013 Author Share Posted May 3, 2013 Hi Richard, sorry for my delayed reply. Thanks for all your help. 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