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
精彩评论