Jump to content
  • Advertisement
Sign in to follow this  

[.net] Read data from other windows (in other applications)

This topic is 2918 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all,

my problem is like this:

im looking for a way to read data from other window (in other application)

lets say i see a window and the window have some text on it (text is not in text area and i CANT copy it with ctrl+ c

i have searched Google and i understand that only approach for this is "OCR"

i thought i could make this by getting a window handle (IntPtr) and with it i would get all the window strings (or something like that), but i didnt found any way to do that...

that brings me back to OCR..

So .. if no other option.. i will try with OCR..
how to do that?
what is best approach to do it when i know i need to read text (and numbers)
i have Googled and found some free codes that can do OCR but i couldn't manage to work it out..

if you know a way to get some text from window in stand of OCR i will be more then happy to hear about it..
if OCR is the only way..
please .. let me know what is the simple approach to do it..


i saw something about MODI (an office 2007 OCR)
but this bring me to two problems:
1) i couldn't mange this to work out (fixable)
2) MODI need client to have office 2007 (i cant be sure all clients will have office 2007

Share this post

Link to post
Share on other sites
Did you try to use Spy++ (part of the Visual Studio tools) to spy out whether or not the text is in a Windows control? If it is that would make it much easier, all you would have to do is get the control's handle and use the win api to get the text.

Share this post

Link to post
Share on other sites
You use the same API to get the text in a textbox. Just pass the HWND of the textbox. You can use Spy++ to findout whether or not it is a real Windows Textbox or something rendered in OpenGL or DirectX.

Can you tell us what application it is you are trying to scrape?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!