Click to See Complete Forum and Search --> : analyze text from remote window DC.


hanoh
June 10th, 2004, 03:00 AM
Can I analyze text from remote window application? I.e. analyze text that other application created (Font) without the use of OCR program. Does windows OS save the location of Font created on the window?
This is for an automatic QA GUI test, for now I can control remote application via windows messages but I can’t know what this application write on the Window.

To simplify the question suppose I know handle to remote window and someone create a text via DrawText or TextOut, can I only from the windows handle analyze the text in the window?
One complicated solution is to use OCR program, which mean copy a bitmap from the DC that relate to this handle and run OCR program on this bitmap.
What I am looking for is more simple solution to this problem.

Ecuador -=[NM]=-
June 20th, 2004, 08:53 AM
One idea is to find all child windows of this remote window ( i.e. textboxes ), and extract the text from them. No idea how to work around without using a OCR though...

greets

ecuador

Marc G
June 20th, 2004, 01:28 PM
To extract the text drawn with DrawText or TextOut you'll have to use OCR or you might be able to install Win32 API hooks to monitor DrawText and TextOut calls.