Arma 3 Scripting

Command in GUI Control - Positioning

setMousePosition

Also available as Markdown and JSON, or read the original wiki page.

Description

Moves mouse pointer to specified position on the screen. x and y could be any number, but will be clipped so mouse never leaves the screen area.

Syntax

setMousePosition [x, y]

Parameters:

Returns: Nothing

Examples

Example 1

setMousePosition [0.5, 0.5];

See also

getMousePosition · ctrlSetMousePosition · ctrlMousePosition · ctrlMapCursor · reversedMouseY