PrashantChauhan Posted October 14, 2011 Share Posted October 14, 2011 Hi Members, In my desktop application, there are three vertical TAB. I want to click on vertical tab. I used TAB's ID, Instance, Class, ClassNN but I didn't get success. These vertical tab work regularly with the X and Y coordinates. I don't want to use coordinates because when I will run in different machine then this machine resolution is not same as my machine. Please help me on this topic to click vertical tabs. Thanks in advance: Prashant Chauhan Link to comment Share on other sites More sharing options...
funkey Posted October 14, 2011 Share Posted October 14, 2011 When it is a real tab control you can use _GUICtrlTab_SetCurSel. Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Link to comment Share on other sites More sharing options...
Xenobiologist Posted October 14, 2011 Share Posted October 14, 2011 (edited) Or do you something like this? ControlSend($titel, '', 'SysTabControl321', '^+{TAB}') Edited October 14, 2011 by Xenobiologist 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...
somdcomputerguy Posted October 14, 2011 Share Posted October 14, 2011 (edited) I used TAB's ID, Instance, Class, ClassNN but I didn't get success.Did you try using the ControlCommand() function? edit: I've added a piece of code that I use. The program I automate/use with this script has 6 tabs, and this code selects the first tab if its not already the active one. ; Change to first Tab if it's not already selected $TabItem = ControlCommand("Forum Spam List Checker", "", "SysTabControl321", "CurrentTab") If $TabItem <> 1 Then For $a = 1 To $TabItem - 1 ControlCommand("Forum Spam List Checker", "", "SysTabControl321", "TabLeft") Sleep(100) Next EndIf Edited October 14, 2011 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
PrashantChauhan Posted January 12, 2012 Author Share Posted January 12, 2012 Thanks to all. I will try this and then let you know 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