Is there a way to capture text from a specific location on the screen, so that a any moment time an application can determine what text is in that location?
Daniel Borras
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Oct 14, 2010, 9:24 PM EDT
If you use any control in the form it will be easy to get text.
Daniel Borras11 reputationPosted Oct 15, 2010, 7:02 AM EDT
Daniel Borras
Sam HobbsRank #107 · 20.5K reputationPosted Oct 15, 2010, 11:54 AM EDT
Daniel Borras11 reputationPosted Oct 15, 2010, 3:02 PM EDT
I don't mean to be rude but I'm not sure want you mean by vague, it's a "C# .Net 4.0" forum so I will be programming in C#, using Microsoft Studio 2010. And the application that I will be looking at, should not matter because I just need to determine what is being displayed in an area on the screen. The application that I will be using, only applies in what tool sets are available, so for the most part I am not at a point in selecting whether it will be a Window, WPF, Console, Class, etc. it all depends on what is available; that is why I posted the question.
At the very least I need to be able to input some screen coordinates, for a rectangle, and it would return an image of what is currently being displayed there. There are a lot of tools to determine if there is text in an image.
So is there a way within C#, in any of the application that .Net 4.0 offers, to determine what is being displayed on a particular part of the desktop screen? Can a location of the screen be captured, as an image, within .Net 4.0? And if so what would be the best approach?
Within an html page, I can use Screen-Scraping to determine what is within the web page; is there something like Screen-Scraping within .Net , for the desktop display? Just needed a place to start, don't want to recreate the wheel if it is already out there.
Thank you for your help
Daniel Borras
Sam HobbsRank #107 · 20.5K reputationPosted Oct 15, 2010, 3:42 PM EDT
It will likely help you to learn about the Spy++ tool.
Daniel Borras11 reputationPosted Oct 15, 2010, 4:00 PM EDT
In all honesty I have never looked at Spy++ but I will do so this weekend.
Daniel Borras
Sam HobbsRank #107 · 20.5K reputationPosted Oct 15, 2010, 4:21 PM EDT