Share this post

Link to post

Share on other sites

Ruud 0

Ruud 0

The thing is I can give the control focus, and also send keystrokes that make the selection jump from word to word. I'd almost say there has to be a way to get its text directly...

If worse came to worse I could of course use the sending-keystrokes-ability to copy-paste the words one by one to a location elsewhere. However this would have me loose non-selectable words/information that I need to. And I sure hope there's an easier, less error-prone way of interacting with this thing!

PS - The attached screenshot shows in green (red) the controls I can (cannot) interact with / get the text from; just to get an idea what I'm dealing with.

Share this post

Link to post

Share on other sites

Ruud 0

Ruud 0

Another thought - the control I'm trying to interact with seems to be a form in itself; it is of the same class as the form it's placed on. I'm not sure if that's helpful or usuable, but I thought I'd share my observations

Share this post

Link to post

Share on other sites

rodent1 5

rodent1 5

If you can't directly read the text, there may be other ways. Using the menus of the window in the screenshot, can you export the text you see in the red controls to a file, or another dialog that you'd be able to read, or can you put the whole thing in the clipboard?

Share this post

Link to post

Share on other sites

Ruud 0

Ruud 0

I tried all of that; on 1 control nothing works, on the other 2 controls only sending keystrokes works - I need to loop through the words and copy by sending {DOWN} and {^C}. Though this is cumbersome, it does work - I was just hoping for something a bit higher-level, I guess.

On the 1 other control, the only thing that works is OCR, which, as mentioned, is really really slow, and therefore unusable.

Other tips are appreciated, I guess I laid my hope on the thread that WSorich mentioned ()

Cheers!

Share this post

Link to post

Share on other sites

Fubarable 1

Fubarable 1

As has been mentioned -- what about using the clipboard? For instance, can you send "^a" to select all of the text held by the control (if it is some sort of edit control), then "^c" to copy it, then finally get the clipboard contents with ClipGet()?

1

Share this post

Link to post

Share on other sites

kmaclamore 0

kmaclamore 0

As has been mentioned -- what about using the clipboard? For instance, can you send "^a" to select all of the text held by the control (if it is some sort of edit control), then "^c" to copy it, then finally get the clipboard contents with ClipGet()?

I was having a similar issue as OP and this solved the problem, thanks!