How can I control the mouse and keyboard in Python?
The idea is to do the same as the Robot() class in Java. Be able to say: move the mouse from here to here, click there, write that whatever is on the screen.
For Windows there is win32api but I'm using mainly Linux.
For Linux there is Xlib but does it works for keyboard as well? (found only reference to the mouse)
Is there a cross-platform solution? (Linux, Windows and even OS X would be the great.)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…