PyAutoGUI lets your Python scripts control the mouse and keyboard to automate interactions with other applications. The API is designed to be simple. PyAutoGUI works on Windows, macOS, and Linux, and runs on Python 2 and 3.
The x, y coordinates used by PyAutoGUI has the 0, 0 origin coordinates in the top left corner of the screen. The x coordinates increase going to the right (just as in mathematics) but the y coordinates increase going down (the opposite of mathematics). On a screen that is 1920 x 1080 pixels in size, coordinates 0, 0 are for the top left while 1919, 1079 is for the bottom right.
Currently, PyAutoGUI only works on the primary monitor. PyAutoGUI
isn't reliable for the screen of a second monitor (the mouse functions
may or may not work on multi-monitor setups depending on your operating
system and version). All keyboard presses done by PyAutoGUI are sent to the window that
currently has focus, as if you had pressed the physical keyboard key.
Download : Desktop Automation