Sign in to follow this  
Followers 0
PrashantChauhan

How to click vertical TAB's in desktop application ?

5 posts in this topic

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

Share this post


Link to post
Share on other sites



When it is a real tab control you can use _GUICtrlTab_SetCurSel.


Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Or do you something like this?

ControlSend($titel, '', 'SysTabControl321', '^+{TAB}')

Edited 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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Thanks to all. I will try this and then let you know

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0