I would like to write a program that can βuseβ other programs by controlling the mouse / keyboard and being able to βseeβ what is on the screen.
I used AutoIt to do something similar, but I had to cheat sometimes because the language is not so powerful, or maybe it is just that I suck, and I can not do so much with it: P
So ... I need:
- Take screenshots, then I will compare them so that the program "understands", but it should "see"
- Use mouse: move, click and release, simple, right?
- Using the keyboard: pressing certain keys or key combinations, including special keys such as Alt , Ctrl , etc.
How can i do this in python?
Does it work on both Linux and windows? (it can be really cool, but it is not necessary)
source share