Wait for mouse or key
Pause until the person at the runner presses a chosen key, any key, or clicks the mouse, e.g. 'press F9 when the form is ready' in an attended agent.
Command in the Mouse and keyboard toolkit · id ooa.desktop/wait_for_input · 4 inputs, 4 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Wait for | String | No | key | key: the key below; any_key: any key; click: any mouse button; key_or_click: the key below or a click. |
| Key | String | No | Key name, e.g. F9, ENTER, ESC or A. | |
| Timeout (seconds) | Number | No | 60 | Give up after this many seconds. |
| Fail on timeout | Boolean | No | false | Fail with DESKTOP.INPUT_TIMEOUT when nothing happens in time; when off, timed_out is true and the agent carries on. |
Outputs
| Output | Type | What it is |
|---|---|---|
| timed_out | Boolean | True when nothing happened in time. |
| input | String | What happened: the key name, LEFT_CLICK, RIGHT_CLICK or MIDDLE_CLICK; empty on time-out. |
| x | Number | Pointer position (physical screen pixels) when it happened. |
| y | Number | Pointer position (physical screen pixels) when it happened. |