开发者

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

开发者 https://www.devze.com 2023-03-28 03:51 出处:网络
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 applicaitonYou could take a screenshot and then us

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

精彩评论

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