Skip to content

Adaptive Waiting as a Complement to PyAutoGUI #946

@LuizSeabraDeMarco

Description

@LuizSeabraDeMarco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions