SendMouseMoveEvent: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "== browser.sendMouseMoveEvent(x, y) (Client-Side) == '''Client-side function to simulate mouse movement within a browser.''' === Usage: === <syntaxhighlight lang="javascript"> // Example: Simulating mouse movement to (500, 400). browser.sendMouseMoveEvent(500, 400); </syntaxhighlight> === Description: === Simulates mouse movement at the specified coordinates within the browser. === Parameters: === * <code>x</code>: X-coordinate of the mouse movement. * <code>y</c...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== browser.sendMouseMoveEvent(x, y) (Client-Side) ==
{{ClientsideJsFunction}}
{{JSContainer|
Simulates mouse movement at the specified coordinates within the browser.


'''Client-side function to simulate mouse movement within a browser.'''
=== Required Params ===
*'''x:''' {{RageType|Number}} - X-coordinate of the mouse movement.
*'''y:''' {{RageType|Number}} - Y-coordinate of the mouse movement.


=== Usage: ===
=== Return Value ===
<syntaxhighlight lang="javascript">
*'''void''' {{RageType|void}}
// Example: Simulating mouse movement to (500, 400).
browser.sendMouseMoveEvent(500, 400);
</syntaxhighlight>


=== Description: ===
==Syntax==
Simulates mouse movement at the specified coordinates within the browser.
<pre>
browser.sendMouseMoveEvent(x, y);
</pre>
 
==Example==
{{ClientsideCode|
<syntaxhighlight lang="javascript">
// Example: Simulating mouse movement to (500, 400).
browser.sendMouseMoveEvent(500, 400);
</syntaxhighlight>
}}
}}


=== Parameters: ===
==See also==
* <code>x</code>: X-coordinate of the mouse movement.
{{Browser_definition_c}}
* <code>y</code>: Y-coordinate of the mouse movement.
[[Category:Browser API]]
[[Category:Clientside API]]
[[Category:Client-side Function]]
[[Category:Shared Function]]

Latest revision as of 20:37, 13 December 2024

Client-Side
Function

 JavaScript



JavaScript Syntax

Simulates mouse movement at the specified coordinates within the browser.

Required Params

  • x: Number - X-coordinate of the mouse movement.
  • y: Number - Y-coordinate of the mouse movement.

Return Value

  • void void

Syntax

browser.sendMouseMoveEvent(x, y);

Example

Client-Side
// Example: Simulating mouse movement to (500, 400).
browser.sendMouseMoveEvent(500, 400);


See also