Skip to main content

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​

InputTypeRequiredDefaultWhat it is
XNumberYesHorizontal position in pixels from the left.
YNumberYesVertical position in pixels from the top.
ButtonStringNoleftMouse button.
Double-clickBooleanNofalseDouble-click.
Button actionStringNoclickclick presses and releases; down only presses (hold, e.g. to start a drag); up only releases.
Relative toStringNoscreenscreen: x and y are measured from the top-left of the screen; window: from the top-left of the chosen window.
WindowStringNoWindow 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 keysStringNoKeys held during the click, e.g. CTRL, SHIFT or CTRL+SHIFT.
Window widthNumberNoOuter 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 heightNumberNoOuter height the window is given first, in pixels (with window_width).