click_window
Post mouse clicks to a window-relative coordinate without moving the physical cursor. Automate GUI interactions in background windows.
Instructions
Post mouse click messages to a window-relative coordinate without moving the physical cursor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | Window handle from list_windows or launch_app. Numbers are accepted at runtime, but strings are safest for Codex. | |
| pid | No | ||
| processName | No | ||
| titleContains | No | ||
| x | Yes | X coordinate relative to the target window top-left corner. | |
| y | Yes | Y coordinate relative to the target window top-left corner. | |
| button | No | Mouse button: left, right, or middle. | left |
| doubleClick | No | ||
| delayMs | No | Delay after posting mouse messages, useful before taking the next screenshot. |