Each click in a window
Windows only. Run the nested steps each time the person clicks in a given window, optionally only on a given element (name, type, automation id as captured). The event gives the button, the window title, the process and the element's name, type and automation id; never screen contents. Clicks made by programs are ignored.
Loop type in the Trigger Loop toolkit · id ooa.triggerloop/mouse_clicked · 9 inputs, no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Window | String | No | The window: title text, a pattern with * and ?, or re: and a regular expression. Give this or the process. | |
| Process | String | No | The program, such as excel.exe. Give this or the window. | |
| Button | String | No | left | left, right, middle or any. |
| Element name | String | No | Only clicks on an element with this name (text, * and ? pattern, or re:). Empty: any element. | |
| Element type | String | No | Only clicks on this type of element, such as Button or MenuItem. Empty: any type. | |
| Automation ID | String | No | Only clicks on the element with this automation id. Empty: any. | |
| Debounce (milliseconds) | Number | No | 500 | Ignore repeats within this many milliseconds of the last event. |
| Maximum events | Number | No | 0 | Stop after this many events; 0 = no limit. |
| Maximum (seconds) | Number | No | 0 | Stop waiting after this many seconds in total; 0 = no limit (until the run is stopped or an Exit loop step runs). |