Difference between revisions of "Lua:setMousePos"

From Cheat Engine
Jump to navigation Jump to search
m (...)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
'''function''' setMousePos(''x'', ''y'')
+
{{CodeBox|'''function''' setMousePos(''x'', ''y'')}}
  
 
Sets the mouse cursor to the specified coordinates.
 
Sets the mouse cursor to the specified coordinates.
  
 
===Function Parameters===
 
===Function Parameters===
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"
+
{|width="85%" cellpadding="5%" cellspacing="0" border="0"
 
!align="left"|Parameter
 
!align="left"|Parameter
 
!align="left"|Type
 
!align="left"|Type
Line 19: Line 19:
 
|}
 
|}
  
 +
{{LuaSeeAlso}}
  
== See also ==
+
{{KeyboardMouse}}
* [[getMousePos]]
 
* [[Lua]]
 

Latest revision as of 23:54, 4 December 2025

<> Function

function setMousePos(x, y)

Sets the mouse cursor to the specified coordinates.

Function Parameters[edit]

Parameter Type Description
x Integer The x coordinate to set the mouse cursor to
y Integer The y coordinate to set the mouse cursor to

See also[edit]

Lua
Script Engine

Related Functions[edit]

getMousePos
setMousePos
isKeyPressed
keyDown
keyUp
doKeyPress
mouse_event
setGlobalKeyPollInterval
setGlobalDelayBetweenHotkeyActivation