Lua:getMousePos

From Cheat Engine
Revision as of 23:53, 4 December 2025 by Leunsel (talk | contribs) (Added CodeBox Template.)
Jump to navigation Jump to search

<> Lua API Reference

function getMousePos()

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

Function Parameters

<none>

Example

x, y = getMousePos()

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Mouse Related Functions

Keyboard Related Functions

Global Hotkey Related Functions