Jump to content

How to click vertical TAB's in desktop application ?


Recommended Posts

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

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 months later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...