- takes a condition that evaluates to True
- the ability to define the the seconds to wait, the number of checks, and how often to check (e.g. exponential backoff)
- be able to raise an error on timeout, with a custom error message
- include an optional callback on success or failure
- and be non-blocking. (This is already true for all AHK code).
[Request] Wait control flow
[Request] Wait control flow
This is a vague post, but a lot of the time I find myself writing custom code that tries to mimic ClipWait or WinWait. There should be some kind of built in control flow to write custom wait statements. The motivation is that Windows is often slow especially over remote connections, so simple tasks like creating a file need to be checked otherwise the code will fail. Some of the functionality requested:
Return to “AutoHotkey Development”
Who is online
Users browsing this forum: No registered users and 11 guests