Sign in to follow this  
Followers 0
Nevik564

Changing Tabs on a Windows App. Via Script

3 posts in this topic

hi all

im a little stuck on a script im working on.

i would like to change to a different tab on a windows app, but i cant seem to get it.

here is what ive tried.

ControlClick("APP NAME", "TAB NAME", "[CLASS:TTabSheet; INSTANCE:1]")

and 

ControlClick("APP NAME", "TAB NAME", "[CLASS:TPageControl; INSTANCE:1]")

none of which worked.

this tab is not on my autoit GUI. this is on the WINDOWS APP GUI.

could anybody help me out?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

a

Edited by Nevik564

Share this post


Link to post
Share on other sites

You shouldn't bump your own post in less than 24 hour time, the mods don't like it.

1 question have you used the autoit window info tool to get the class and instance name?

it looks like you probably did.

the very few programs I have here on my work pc that use tabs, all the tabs have the same class and instance name, which may be your case also (which is why it may not be working)

If this is the case, you may need to do just a regular

mouseclick(x,y,"left/right",1)

or controlsend("name of window","","ID of the window","{TAB x}{LEFT n}{ENTER}")

(where x= the number of times you need to use the tab key to have the tabs selected. n= the number of times to hit the left arrow to get to the desired tab)


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

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