开发者

How to Read an application text e.g calc through OCR in C#/C++

i don't want to read from text file instead i want to read an application text e.g calculator b开发者_开发百科uttons,File names on desktop.A generic applicaiton


You could take a screenshot and then use an OCR library such as GOCR or tessnet.


Do you want to do it for a screenshot? Or from an actual locally running application?

If from a running app, you can use the native Win32 APIs to locate the handle for the control you wish to read.

Then use send message and WM_GETTEXT to read the text

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜