Sign in to follow this  
Followers 0
Sten

Problem in getting window/control text

4 posts in this topic

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.

post-39925-1220714956_thumb.gif

post-39925-1220714993_thumb.gif

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

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