Lua:getMousePos

From Cheat Engine
Jump to navigation Jump to search
<> Function

function getMousePos()

Returns 2 parameters: the x-position and y-position of the mouse on the screen.

Function Parameters

<none>

Example

x, y = getMousePos()

See also

Lua
Script Engine

Related Functions

getMousePos
setMousePos
isKeyPressed
keyDown
keyUp
doKeyPress
mouse_event
setGlobalKeyPollInterval
setGlobalDelayBetweenHotkeyActivation