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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Oct 15, 2010, 8:21 PM
Daniel BorrasPosted Oct 15, 2010, 8:00 PM
In all honesty I have never looked at Spy++ but I will do so this weekend.
Daniel Borras
Sam HobbsPosted Oct 15, 2010, 7:42 PM
It will likely help you to learn about the Spy++ tool.
Daniel BorrasPosted Oct 15, 2010, 7:02 PM
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 HobbsPosted Oct 15, 2010, 3:54 PM
Daniel BorrasPosted Oct 15, 2010, 11:02 AM
Daniel Borras
Gomathi PalaniswamyPosted Oct 15, 2010, 1:24 AM
If you use any control in the form it will be easy to get text.