ui_mouse_click
Dispatch mouse clicks at exact pixel coordinates on the TradingView canvas. Use for non-DOM targets or precise pixel interactions; coordinates must be within viewport.
Instructions
Dispatch mouse click event at exact pixel coordinates (x, y) on the window canvas. WHEN TO USE: Call when clicking a non-DOM canvas target or specific pixel coordinate. SIDE EFFECTS: STATE_MUTATING (Dispatches mouse click at coordinate). LIMITATIONS: Coordinates must be within viewport bounds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate (pixels from left) | |
| y | Yes | Y coordinate (pixels from top) | |
| button | No | Mouse button (default left) | |
| double_click | No | Double click (default false) |