<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Browser%3A%3AsendMouseClickEvent</id>
	<title>Browser::sendMouseClickEvent - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Browser%3A%3AsendMouseClickEvent"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Browser::sendMouseClickEvent&amp;action=history"/>
	<updated>2026-06-04T03:13:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Browser::sendMouseClickEvent&amp;diff=26889&amp;oldid=prev</id>
		<title>Shr0x: Created page with &quot;{{ClientsideJsFunction}} {{JSContainer| == sendMouseClickEvent == This function simulates mouse click events in a CEF browser. It enables interactions with the in-game browser interface programmatically by sending click coordinates, button type, and associated flags.  === Syntax === &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; browser.sendMouseClickEvent(buttonType, x, y, isUp); &lt;/syntaxhighlight&gt;  === Required Arguments === * &#039;&#039;&#039;buttonType:&#039;&#039;&#039; {{RageType|number}} - The mouse but...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Browser::sendMouseClickEvent&amp;diff=26889&amp;oldid=prev"/>
		<updated>2024-12-13T20:45:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ClientsideJsFunction}} {{JSContainer| == sendMouseClickEvent == This function simulates mouse click events in a CEF browser. It enables interactions with the in-game browser interface programmatically by sending click coordinates, button type, and associated flags.  === Syntax === &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; browser.sendMouseClickEvent(buttonType, x, y, isUp); &amp;lt;/syntaxhighlight&amp;gt;  === Required Arguments === * &amp;#039;&amp;#039;&amp;#039;buttonType:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} - The mouse but...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
== sendMouseClickEvent ==&lt;br /&gt;
This function simulates mouse click events in a CEF browser. It enables interactions with the in-game browser interface programmatically by sending click coordinates, button type, and associated flags.&lt;br /&gt;
&lt;br /&gt;
=== Syntax ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
browser.sendMouseClickEvent(buttonType, x, y, isUp);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;buttonType:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} - The mouse button type:&lt;br /&gt;
  * 0: Left button&lt;br /&gt;
  * 1: Middle button&lt;br /&gt;
  * 2: Right button&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;x:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} - X coordinate of the click position.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;y:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} - Y coordinate of the click position.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;isUp:&amp;#039;&amp;#039;&amp;#039; {{RageType|boolean}} - Indicates if the click is a press (`false`) or release (`true`).&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Undefined&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
const browser = mp.browsers.at(1);&lt;br /&gt;
// Simulate a left mouse button click at coordinates (200, 300)&lt;br /&gt;
browser.sendMouseClickEvent(0, 200, 300, false); // Mouse press&lt;br /&gt;
browser.sendMouseClickEvent(0, 200, 300, true);  // Mouse release&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
=== See Also ===&lt;br /&gt;
{{Browser_definition_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;/div&gt;</summary>
		<author><name>Shr0x</name></author>
	</entry>
</feed>