#868 · Primary category: AI Agents & Automation

pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.

Project last updated:08/20/24

GitHub Stars

12.7K

Forks

1.4K

Contributors

52

License

BSD-3-Clause

Why we included this project

PyAutoGUI is a small Python library that gives scripts hands-on control of a real desktop rather than just crunching numbers: it reads the mouse position and screen size, moves and clicks, types, scrolls, and can locate a target image on screen so you can click exactly on a button that appears mid-run. A single pip install brings light dependencies on Windows, macOS, and Linux, which makes it a natural fit for quick UI checks, repetitive data-entry work, and agents that need to drive a machine. One caveat worth knowing before you build on it: PyAutoGUI targets the primary monitor and sends keystrokes to whichever window has focus, so it suits single-screen, focused-window tasks far better than complex multi-monitor orchestration.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category