-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Adaptive Waiting as a Complement to PyAutoGUI #946
Description
Hi PyAutoGUI maintainers and community 👋
I wanted to share an open-source experiment that complements PyAutoGUI, especially around one common pain point: fixed waiting times (e.g. time.sleep).
I built a small Python library called Nano-Wait that introduces adaptive waiting — instead of sleeping for a fixed duration, it dynamically adjusts wait time based on system context and (optionally) visual feedback from the screen (OCR).
The goal is not to replace PyAutoGUI, but to be used alongside it in automation flows where timing is unstable across different machines, networks, or UI states.
Example use cases:
- Reducing flaky automation caused by hardcoded sleeps
- Waiting for UI changes rather than elapsed time
- Screen-based decisions before triggering PyAutoGUI actions
https://pypi.org/project/nano-wait/
If this kind of approach aligns with PyAutoGUI’s ecosystem, I’d love to hear feedback or suggestions from the community.