Sign in to follow this  
Followers 0
realkiller

controlgettext help

6 posts in this topic




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?

Share this post


Link to post
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.

Share this post


Link to post
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).

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