<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsSimulateClick?action=history&amp;feed=atom</id>
	<title>DgsSimulateClick - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsSimulateClick?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSimulateClick&amp;action=history"/>
	<updated>2026-05-19T13:47:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSimulateClick&amp;diff=55204&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{Client function}} __NOTOC__ This function simulates a click without mouse clicking.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; string dgsSimulateClick( element dgsElement, st...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSimulateClick&amp;diff=55204&amp;oldid=prev"/>
		<updated>2018-06-06T01:47:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client function}} __NOTOC__ This function simulates a click without mouse clicking.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string dgsSimulateClick( element dgsElement, st...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function simulates a click without mouse clicking.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string dgsSimulateClick( element dgsElement, string button )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dgsElement:''' The dgs element you want to triggered&lt;br /&gt;
*'''button:''' Mouse button triggered, available values as follows:&lt;br /&gt;
**'''left'''&lt;br /&gt;
**'''middle'''&lt;br /&gt;
**'''right'''&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if succeed, false otherwise&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
local button = DGS:dgsCreateButton(0.2,0.2,0.2,0.1,&amp;quot;test&amp;quot;,true)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onDgsMouseClick&amp;quot;,button,function(button,state)&lt;br /&gt;
	if button == &amp;quot;left&amp;quot; and state == &amp;quot;down&amp;quot; then&lt;br /&gt;
		outputChatBox(&amp;quot;clicked&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end)&lt;br /&gt;
DGS:dgsSimulateClick(button,&amp;quot;left&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>