Jump to content

Reading control text


Recommended Posts

Greetings,

There is a control on a third party window that I need to get the text from. The Active Window Info tool says the following.

Size:           X: 343  Y: 5    W: 122  H: 17
Control ID:   394110
ClassNameNN:     TEdit2
Text:           Eradicator
Style:         0x540100C0
ExStyle:         0x00000000

I tried to read it like this.

$data = ControlGetText("Mywindow", "", "TEdit2")

It always returns an empty string and @error is always one, which means it failed to read the control. What did I do wrong? How can I read the control?

Regards,

Eradicator

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