Sign in to follow this  
Followers 0
Guest taurus

ControlGetText with c# datagrid

7 posts in this topic

Hello,

I'm a newbie in using AutoItv3.

I tried autoitv3 with c++ Apps and it work perfect.

Now I want use autoitv3 with c# Apps and ControlGetText don't work with c# datagrid.

the control is for exemple:

WindowsForms10.EDIT.app51

any ideas

thx

Share this post


Link to post
Share on other sites



The newest microsoft controls do not folllow the same standards as the earlier ones. Please attach a screenshot of the grid you want to retrieve the information from.


Who else would I be?

Share this post


Link to post
Share on other sites

screenshot is attached.

system.windows.forms.datagrid is used for this.

thx

Share this post


Link to post
Share on other sites

OK, the answer is pretty simple. It can't be done with autoit that I know of. If you really want the text in the box, look into some .net control stuff from vb or C++.net. Otherwise .net controls are completely foreign to autoit since they were built from the ground up and have no realation to the "normal" controls in windows.

Can any more experienced person back me up on this? I am pretty sure this is the case, but I would be happy to accept any other information.


Who else would I be?

Share this post


Link to post
Share on other sites

thx for the answer.

do you know any tool which get the text of a datagrid? like copytext 2.2

Share this post


Link to post
Share on other sites

Can someone explain why it's not possible?

I'm very curious.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

The windows controls have standards that they must follow in order to be a windows control, but .net controls pretty much throw the rulebooks out the window, and have a new set of rules. I could imagine that it still might be possible to get the text, but you would have to do some imaginative work with DllCall to do it.

Edited by this-is-me

Who else would I be?

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