Lua:getMousePos

From Cheat Engine
Revision as of 23:53, 4 December 2025 by Leunsel (talk | contribs) (Added CodeBox Template.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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[edit]

<none>

Example[edit]

x, y = getMousePos()

See also[edit]

Lua
Script Engine

Related Functions[edit]

getMousePos
setMousePos
isKeyPressed
keyDown
keyUp
doKeyPress
mouse_event
setGlobalKeyPollInterval
setGlobalDelayBetweenHotkeyActivation