Volt

mousemoveabs

Moves the mouse cursor to an absolute screen position.

Syntax

mousemoveabs(x: number, y: number) -> void

Parameters

ParameterTypeDescription
xnumberX coordinate in pixels
ynumberY 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()

On this page