Screen Scraping with C#?
Posted on 2004-09-10
I like to play Hearts on MSN Gaming Zone. I would like to write a program that tracks the different cards that have been played for each round. So, the question is how do I screen scrape a graphical window using C#?
The steps in my mind would consist of something like:
1) Get the device context of the foreign (Hearts) window
2) Capture the graphic bits in a well-defined, never changing location
3) Compare those graphics (the face of the card) with a library of 52 cards looking for a match
Can anyone help me with this? Never mind if it is cheating or not, it is a way for me to learn more about graphics and programming. I would consider giving more points if 500 is not enough for this challenge.