Difference between revisions of "Lua:setMousePos"

From Cheat Engine
Jump to navigation Jump to search
(Related Functions)
m (...)
 
(One intermediate revision by the same user 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 18: Line 18:
 
|The y coordinate to set the mouse cursor to
 
|The y coordinate to set the mouse cursor to
 
|}
 
|}
 
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
  
=== Related Functions ===
+
{{KeyboardMouse}}
* [[Lua:getMousePos|getMousePos]]
 

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