Jump to content

VB.NET Tabcontrol Clicking


 Share

Recommended Posts

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

  • Moderators

BeverlyJones,

I am confused. You say you want to write a VB.NET program - yet you post on the AutoIt forum and expect answers? :huh:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

BeverlyJones,

All becomes clear - I shall move this to the AutoItX section of the forum. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...