SetMouseLocation: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|Sets the cursor's position on the screen.}} {{FuncSyntax|SetMouseLocation(x, y)}} {{FuncParameters}} {{FuncParam|mouseX|The X...")
 
No edit summary
 
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|Sets the cursor's position on the screen.}}
{{FuncDescription|Sets the cursor's position on the screen. Only works within viewport aswell}}


{{FuncSyntax|SetMouseLocation(x, y)}}
{{FuncSyntax|SetMouseLocation(x, y)}}

Latest revision as of 10:47, 22 December 2019

SetMouseLocation

Type: Function
Context: Client
Introduced: v1.0

Description

Sets the cursor's position on the screen. Only works within viewport aswell

Syntax

SetMouseLocation(x, y)

Parameters

  • mouseX
    The X coordinate to move the cursor to.
  • mouseY
    The Y coordinate to move the cursor to.


Example

SetMouseLocation(50,50)