maddogrsf Posted March 20, 2015 Share Posted March 20, 2015 hello again here is my question i have a tabbed program ( a program that has multiple tabs inside it , just like any browser) i want to select a tab containing a certain title and activate it . how can i do it? thank you in advance regards Link to comment Share on other sites More sharing options...
MikahS Posted March 20, 2015 Share Posted March 20, 2015 (edited) What's the program if you don't mind me asking? EDIT: Also, the AutoIt window info tool will be your best friend. Edited March 20, 2015 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
spudw2k Posted March 20, 2015 Share Posted March 20, 2015 Look up the _GUICtrlTab_ActivateTab function in the help file. Use the window info tool as described by MikahS to help determine the control instance then look at the ControlGetHandle function in the help file to learn how to programmatically obtain the handle needed. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Zedna Posted March 21, 2015 Share Posted March 21, 2015 (edited) For simple looping to the left/right you can use ControlCommand() with CurrentTab/TabLeft/TabRight commands. Edited March 21, 2015 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
maddogrsf Posted March 23, 2015 Author Share Posted March 23, 2015 thank you . the tab looping is just perfect ! Link to comment Share on other sites More sharing options...
SorryButImaNewbie Posted March 23, 2015 Share Posted March 23, 2015 What to do if the window info tool doesn't give back any control on the tabs? I had a similar problem a while back with an updated program. I danced around the problem reather ungracefully by moving the window to 0,0 resizeing it to the size it appeared to my computer then mouseclick in said coordinates to achive what I wanted. Link to comment Share on other sites More sharing options...
Zedna Posted March 23, 2015 Share Posted March 23, 2015 What to do if the window info tool doesn't give back any control on the tabs? Then stick to Send() & ControlSend() Resources UDF ResourcesEx UDF AutoIt Forum Search 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