prashanthigajjala Posted August 1, 2011 Share Posted August 1, 2011 how to handle the tabs if having same control id,class name,instance(all tabs having same properties) Link to comment Share on other sites More sharing options...
somdcomputerguy Posted August 1, 2011 Share Posted August 1, 2011 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 More sharing options...
prashanthigajjala Posted August 4, 2011 Author Share Posted August 4, 2011 $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 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