Skip to main content

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​

InputTypeRequiredDefaultWhat it is
WindowStringNoThe window: title text, a pattern with * and ?, or re: and a regular expression. Give this or the process.
ProcessStringNoThe program, such as excel.exe. Give this or the window.
ButtonStringNoleftleft, right, middle or any.
Element nameStringNoOnly clicks on an element with this name (text, * and ? pattern, or re:). Empty: any element.
Element typeStringNoOnly clicks on this type of element, such as Button or MenuItem. Empty: any type.
Automation IDStringNoOnly clicks on the element with this automation id. Empty: any.
Debounce (milliseconds)NumberNo500Ignore repeats within this many milliseconds of the last event.
Maximum eventsNumberNo0Stop after this many events; 0 = no limit.
Maximum (seconds)NumberNo0Stop waiting after this many seconds in total; 0 = no limit (until the run is stopped or an Exit loop step runs).