Mouse click
Click, double-click, or press or release a mouse button at a point on the screen or in a window.
Command in the Mouse and keyboard toolkit · id ooa.desktop/mouse_click · 10 inputs (2 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| X | Number | Yes | Horizontal position in pixels from the left. | |
| Y | Number | Yes | Vertical position in pixels from the top. | |
| Button | String | No | left | Mouse button. |
| Double-click | Boolean | No | false | Double-click. |
| Button action | String | No | click | click presses and releases; down only presses (hold, e.g. to start a drag); up only releases. |
| Relative to | String | No | screen | screen: x and y are measured from the top-left of the screen; window: from the top-left of the chosen window. |
| Window | String | No | Window to bring to the front first: text in its title, a pattern with * or ?, or re:regex. Empty uses the window that is in front. | |
| Modifier keys | String | No | Keys held during the click, e.g. CTRL, SHIFT or CTRL+SHIFT. | |
| Window width | Number | No | Outer width the window is given first, in pixels (with window_height), so a point measured from its corner lands where it was taken; Pick on screen fills it in. | |
| Window height | Number | No | Outer height the window is given first, in pixels (with window_width). |