mousemoveabs
Moves the mouse cursor to an absolute screen position.
Syntax
mousemoveabs(x: number, y: number) -> voidParameters
| Parameter | Type | Description |
|---|---|---|
x | number | X coordinate in pixels |
y | number | Y coordinate in pixels |
Returns
This function does not return a value.
Description
mousemoveabs moves the mouse cursor to the specified absolute screen coordinates.
Example
-- Move to top-left corner
mousemoveabs(0, 0)
-- Move to center of screen (assuming 1920x1080)
mousemoveabs(960, 540)
-- Move to specific button location
mousemoveabs(500, 300)
mouse1click()Related Functions
mousemoverel- Move relative to current position