r3dlined Posted December 18, 2009 Posted December 18, 2009 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.
PsaltyDS Posted December 18, 2009 Posted December 18, 2009 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
r3dlined Posted December 18, 2009 Author Posted December 18, 2009 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.
r3dlined Posted December 18, 2009 Author Posted December 18, 2009 Confirmed that is a workaround. Any thoughts on info from a list view?
PsaltyDS Posted December 18, 2009 Posted December 18, 2009 Confirmed that is a workaround. Any thoughts on info from a list view?Give up 'till after New Year's? 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
ShawnLuo Posted September 2, 2010 Posted September 2, 2010 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now