Screen scraping an application window and interacting with the mouse and keyboard
Posted
by ccook
on Stack Overflow
See other posts from Stack Overflow
or by ccook
Published on 2010-05-30T07:53:31Z
Indexed on
2010/05/30
8:02 UTC
Read the original article
Hit count: 266
c#
|screen-scraping
The other day I found myself addicted to a flash game and frustrated by the thing at the same time. In a moment of frustration with the game I thought I would make a 'bot' to beat it for me. Well, I really wouldn't, but it made me realize: I don't know how to interact with another application in a way to do this. Which brings me to the question, how would one take screenshots of another running application and interact with it with the keyboard and mouse. Ideally the solution would be in a managed language like c#.
When doing the background reading the net was drowning with articles on scrapping HTML. There were not many articles on actually screen scrapping an application.
Diverse answers are appreciated as I’m really looking at surveying what’s out there.
© Stack Overflow or respective owner