Difference between revisions of "Lua:getMousePos"

From Cheat Engine
Jump to navigation Jump to search
(Created page with ''''function''' getMousePos() Returns 2 parameters. The x-pos and the y-pos of the mouse on the screen. Example: x,y = getMousePos() ===Function Parameters=== <none> == …')
 
m (Added CodeBox Template.)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''function''' getMousePos()
+
[[Category:Lua]]
 +
{{CodeBox|'''function''' getMousePos()}}
  
Returns 2 parameters. The x-pos and the y-pos of the mouse on the screen.
+
Returns 2 parameters: the x-position and y-position of the mouse on the screen.
  
Example:
+
{{LuaFunctionParametersNone}}
  x,y = getMousePos()
 
 
 
  
 +
===Example===
 +
<pre>
 +
x, y = getMousePos()
 +
</pre>
  
===Function Parameters===
+
{{LuaSeeAlso}}
<none>
 
  
== See also ==
+
{{KeyboardMouse}}
* [[setMousePos]]
 
* [[Lua]]
 

Latest revision as of 23:53, 4 December 2025

<> 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