Sten Posted September 6, 2008 Posted September 6, 2008 I am trying to get text from TAdvStringGrid control. Control get text/window get text returns nothing. Is there any other alternative way like process memory read/dll call to get text of TAdvStringGrid? Please see the control screen shot & AutoitInfo screen shot of TAdvStringGrid control.
Champak Posted September 6, 2008 Posted September 6, 2008 I may be wrong, because I don't know what an advanced string grid class is, but it looks like a list; so I believe you are going to want to look at the GUICtrlListView Management, or secondary GUICtrlListBox management, get functions.
Sten Posted September 6, 2008 Author Posted September 6, 2008 Thanks for your input Champak. I have tried GUICtrlListView & GUICtrlListBox management functions. It doesn't work out. I just want to get row by row/entire records in that grid control. Any input will be more helpful to me. If anyone came across the same kind of issue, pls. throw some light.
Bowmore Posted September 6, 2008 Posted September 6, 2008 Thanks for your input Champak. I have tried GUICtrlListView & GUICtrlListBox management functions. It doesn't work out. I just want to get row by row/entire records in that grid control. Any input will be more helpful to me. If anyone came across the same kind of issue, pls. throw some light. Some of these grid controls can be quite difficult to automate. One method that I find usually works is to use Send() to send keystrokes to navigate to the cell you want to read the Send("{CTRL}c") to copy the contents to the clipboard and then use ClipGet ( ) to read the value. Something like this Send("{DOWN 3}") Send("{LEFT 2}") Send("{CTRL}c") $Value = ClipGet() "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook
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