MElkins Posted June 14, 2006 Posted June 14, 2006 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!
Moderators big_daddy Posted June 14, 2006 Moderators Posted June 14, 2006 Have you tried: ControlGetText ( "title", "text", controlID )
MElkins Posted June 14, 2006 Author Posted June 14, 2006 (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 June 14, 2006 by MElkins
Don N Posted June 14, 2006 Posted June 14, 2006 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
MElkins Posted June 14, 2006 Author Posted June 14, 2006 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.cplWhen 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 big_daddy Posted June 15, 2006 Moderators Posted June 15, 2006 The tabs in this case are from the Windows Display Properties window.control desk.cplWhen 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
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