Jump to content

Changing Tabs on a Windows App. Via Script


Nevik564
 Share

Recommended Posts

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?

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

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...