Jump to content

Control Click Help


Vos
 Share

Recommended Posts

quick question i have a button with specs.

>>>> Control <<<<

Class: ThunderRT6TextBox

Instance: 12

ClassnameNN: ThunderRT6TextBox12

Name:

Advanced (Class): [CLASS:ThunderRT6TextBox; INSTANCE:12]

ID: 10

Text: Data

Flash

i can click on the button using the code

$windowname = WinGetTitle("[active]")

ControlClick($windowname, "", "[CLASS:ThunderRT6TextBox; INSTANCE:8]")

however the button changes the instance number depending on which screen i am on. The Txt on the button stays the same (Data Flash). Am able to use control click on this button using just the txt? and if i also had buttons with hidden txt could i click on those as well(without using the instance number). please post the text that you think would work, i have tried many different ways and cant seem to do it.

Thanks in advance

Link to comment
Share on other sites

Yes. Doing it this way seems to require the exact control text. Try using the AutoIt Window Info tool. You can copy/paste the exact control text from there into your script to get it to work.

----Edit----

I have only tested this with WinXP SP3. I don't know how well it will work with other OS versions.

Edited by willichan
Link to comment
Share on other sites

That seems to work for the Hidden txt but not the visible. is there a way to distinguish between?

Try using the 'Summary' tab of the info tool. It will show all of the info at once. Visible text in the '>>>> Visible Text <<<<' section, and hidden in the '>>>> Hidden Text <<<<' section. What you are looking for, however, is in the '>>>> Control <<<<' section next to the 'Text:' tag.

Make sure that you are hovering over the control you want to click, then freeze the display (strl-alt-f) before you copy the control text.

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...

I am not quite sure what you are referring to. Each line of visible text is not necessarily a different control. You should look in the Control section for the Text tag.

If you are looking in the visible text section, you are seeing text for the window, not just the control you are hovering over.

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