PyUnicon is a cross platform library to control keyboard and mouse.
MIT License
PyUnicon is a cross platform library to control keyboard and mouse. Works on MacOSX (Cocoa), Linux (X11) and Windows (Win32)
The easiest way is to install by PIP:
pip install pyunicon
mouse = UCMouse()
x, y = mouse.get_position()
mouse.move(200, 200)
sleep(1)
mouse.move(300, 300)
mouse.click_left()
print('X, Y: %s, %s' % (x, y))