Jump to content

Retreiving Tab Labels


Recommended Posts

Is there a way in AutoIt to retreive the Tab labels?

I know you can use the ControlCommand to "TabRight", "TabLeft" and "CurrentTab" and that "CurrentTab" will return the number of the Tab but I need the Tab Label (text).

thanks in advance!

:D

Link to comment
Share on other sites

Have you tried:

ControlGetText ( "title", "text", controlID )
I don't get anything.

With the code below all I get is the Tab Number, no text.

ControlCommand("System Properties","","SysTabControl321","TabRight","")

$TabNbr = ControlCommand("System Properties","","SysTabControl321","CurrentTab","")

$TabTxt= ControlGetText("System Properties","","SysTabControl321")

MsgBox(0, $MsgTitle, $TabNbr & " " & $TabTxt)

Edited by MElkins
Link to comment
Share on other sites

Have you tried using the Windows Info Tool that comes with autoit, it will tell you if the tabs have control ids.

Click Start->Programs->Autoit->Windows Info Tool and then check to see if the tabs have control Id's.

_____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper

Link to comment
Share on other sites

Have you tried using the Windows Info Tool that comes with autoit, it will tell you if the tabs have control ids.

Click Start->Programs->Autoit->Windows Info Tool and then check to see if the tabs have control Id's.

The tabs in this case are from the Windows Display Properties window.

control desk.cpl

When I run the AutoIt Info utility the tabs all have an ID of 12320. I didn't get anything using this either with the ControlGetText.

$TabTxt= ControlGetText("System Properties","","12320")

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...