Wait for something
amiga_waitBlocks script execution until an Amiga window, task, or file appears/disappears, or the screen changes/settles, avoiding fixed sleeps and returning what happened or timing out.
Instructions
Block until something happens on the Amiga, instead of sleeping: a window or task appears (or goes, with gone=true), a file appears, the screen changes, or the screen settles (stops changing). The Amiga watches, so nothing crosses the network meanwhile. Returns a line saying what happened; fails with an error after 'timeout' seconds. Use it after starting a program or clicking something that takes time. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gone | No | wait for the window, task or file to go away instead | |
| name | No | for window/task/file: the window title, task name or file path (required); for change/still: watch only this window | |
| what | No | window (default), task, file, change or still | |
| region | No | change/still: watch only this rectangle | |
| timeout | No | seconds (default 30) |