This isn't a job for Java.

If you really want to go down this road, you might want to look at the Robot class and various OCR libraries. But this isn't a job for Java.