Lang Zerner Posted October 6, 2006 Share Posted October 6, 2006 I'm working with an application that has dynamically created tabs. I need to process the data in each tab differently, depending on the text label displayed in the tab item. How can I read the text from a tab item that I didn't create with AutoIt? For example, say there are three tabs in a tab control, and I want to know if one of the tab items has the text label "Foo" on it. This is a tab control in a third party application, so all I know to start with is the control ID of the SysTabControl32 object. How would I find the tab item labeled "Foo"? Thanks, --Lang Link to comment Share on other sites More sharing options...
Xenobiologist Posted October 6, 2006 Share Posted October 6, 2006 Hi, I don't know, but maybe ControlGetText()? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Lang Zerner Posted October 10, 2006 Author Share Posted October 10, 2006 I don't know, but maybe ControlGetText()?I can only get the handle of the SysTabControl32, which doesn't have any text. If I could get the handle of the currently selected tab within the tab control, then ControlGetText() would probably work, but it looks like all I can get is the *index* of the currently-selected tab.I guess I'll have to go research the SysTabControl32 API at MSDN to see if there's a method I can use in the MS API. Unless somebody else know a way to do it in AutoIt?Be seeing you...--Lang Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 10, 2006 Moderators Share Posted October 10, 2006 Have you looked at ControlCommand() bottom 3 options? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
lius Posted February 20, 2007 Share Posted February 20, 2007 Get the handle of the SysTabControl32 and the use wingettext 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