Jump to content

controlgettext help


Recommended Posts

Sorry to say that autoit does not interact directly with .NET applications, and no support has been shown for addding interaction. Unless you can use send functions and mouse clicks you may be out of luck. I know of no control* functions that operate correctly with .NET.

Who else would I be?
Link to comment
Share on other sites

Your best bet is to try and programmatically determine the control's ID by its position (as their IDs are very likely to be different each time while their positions aren't) and then get the text using the determined ID. There is a user-defined function called _ControlGetHandleByPos() that will do just this.

Link to comment
Share on other sites

Determine the location and size of the controls from which you want information (use AutoIt Window Info), and then plug that information into the function. It will return a handle which you can then pass to ControlGetText.

This all assumes that those windows don't resize (or at least that if they do, the locations of the controls don't change).

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