Sign in to follow this  
Followers 0
r3dlined

Reading from a data grid view

6 posts in this topic

Has anyone found a way to read the text in from a data grid view? The window information tool doesn't seem to pick up any text that is there.

Share this post


Link to post
Share on other sites



AutoIt cannot access the API for grid controls because they are custom to their compilers and not standard Windows APIs.

Ugly work-around: You can get away with MouseClick() or Send("{TAB}") to get focus to the portion you are interested in, and then Send("^c") to copy text to the clipboard.

;)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Yeah, good call. I think I have tried to copy the info to the clipboard and it did not copy the text =(.

AutoIt cannot access the API for grid controls because they are custom to their compilers and not standard Windows APIs.

Ugly work-around: You can get away with MouseClick() or Send("{TAB}") to get focus to the portion you are interested in, and then Send("^c") to copy text to the clipboard.

;)

Share this post


Link to post
Share on other sites

Confirmed that is a workaround. Any thoughts on info from a list view?

Share this post


Link to post
Share on other sites

Confirmed that is a workaround. Any thoughts on info from a list view?

Give up 'till after New Year's? :evil:

If I was really desperate to get that, I might "{TAB}" into the control, then try "^c" to get the item text. If that works, then do it in a loop with "{DOWN}" in-between until the text doesn't change (hit the bottom of the list).

Really ugly, I know... ;)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Has anyone found a way to read the text in from a data grid view? The window information tool doesn't seem to pick up any text that is there.

I have the same problem with you, difficult to solve...

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