简体   繁体   中英

How to tail text from a specific control from an external program?

I have tried inspecting this window using Inspect.exe provided on Windows' 8.1 Software Development Kit Testing Tools . I couldn't seem to identify the control handle for this huge rich textbox like control. I could however get the control handle of the edit box below the textbox. I was hoping I could talk directly to the control and use a library such as WindowScrape to get the text.

I believe the external program is created in VC++ . If that helps.

This is the window. I am trying to get text from that is boxed in red color. This is a chat window , messages come in every 5 to 10 seconds. This box scrolls automatically. I want to tail through the text and get the latest message.

Is there any other way to accomplish this?

Tesseract maybe, but I do not know where to start to monitor a specific position relative to the window. So that when I move the window it will still be able to monitor that window.

在此处输入图片说明

您可以在选择聊天框时提供“检查”结果的屏幕截图,同时显示树和详细信息窗格吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM