Jump to content

Handle the tabs


Recommended Posts

Does ControlCommand() work out? For example, I use code like this to select the first tab if it's not already selected.

$TabItem = ControlCommand("Program Title", "", "SysTabControl321", "CurrentTab")

If $TabItem <> 1 Then
    For $a = 1 to $TabItem - 1
        ControlCommand("Program Title", "", "SysTabControl321", "TabLeft")
        Sleep(10)
    Next
EndIf

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

Link to comment
Share on other sites

$a=ControlCommand("PSoC Creator 1.0","Results","[CLASS:WindowsForms10.window.8.app.0.33c0d9d;INSTANCE:40]","IsVisible", "")

MsgBox(0,"status",$a)

ControlClick("PSoC Creator 1.0","Results","[CLASS:WindowsForms10.window.8.app.0.33c0d9d;INSTANCE:40]")

i am using this script but it is not working.PSoCCreater Window have 3 tabs(Sources,Creaters,Results),these 3 tabs having same properties(Class,Instance..),tab name text also not appear in AutoItWindowInfo.then how to capture these tabs without using properties.

Link to comment
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
 Share

  • Recently Browsing   0 members

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