Jump to content

Recommended Posts

Posted

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

Posted (edited)

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
Posted

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

Posted

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")

  • Moderators
Posted

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")

This script may help a little.

Find Classes By Text

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
×
×
  • Create New...