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. Moving the mouse and clicking in the windows of other applications. Sending keystrokes to applications (for example, to fill out forms). Take screenshots, and give an image (for example, of a button or checkbox), and find it on the screen. Locate an application’s window, and move, resize, maximize, minimize, or close it (Windows-only, currently). ...