game_mouse
Control the mouse at normalized screen coordinates to click, move, drag, or scroll, enabling interaction when UI tree inspection fails.
Instructions
Move or click the mouse at normalized screen coordinates.
x/y are 0..1 with the origin at the top left -- exactly the numbers printed
on a game_observe(grid=True) capture, so you can read a target off the
image and pass it straight in. They are converted to pixels here using the
game's real resolution.
action: click, down, up, double, move, setpos, wheel button: L, M, R, T1, T2
This is the fallback that works regardless of how the game builds its UI, when game_ui_click cannot see the widget tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| grid | No | ||
| wheel | No | ||
| action | No | click | |
| button | No | L | |
| observe | No | ||
| show_ui | No | ||
| duration | No | ||
| max_size | No |