Man, when I tried to do this with Tower Defense a few years ago I had the devil of a time reading the screen. I did end up managing to do everything but good OCR on the digit status displays, though - then lost interest.
I would define this as a tool assisted speed run (TAS). Check out TASVideos.org if you are interested in reading more. The site is dedicated to TASing console games in emulators using various programming languages.
Many times i've wanted to finish a game which requires a succession of boring and repetitive commands to complete. Automating it like i do any other development task seems like the perfect solution!
Not gonna win any awards for code style, but projects like this are the kind of things that make me glad I know at least one language really well.
The source is just a few hundred lines of extremely readable code that accomplishes something pretty remarkable.