<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AMACRO_click</id>
	<title>WoW:MACRO click - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AMACRO_click"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:MACRO_click&amp;action=history"/>
	<updated>2026-04-21T16:29:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:MACRO_click&amp;diff=19501&amp;oldid=prev</id>
		<title>Move page script: Move page script moved page MACRO click to WoW:MACRO click without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:MACRO_click&amp;diff=19501&amp;oldid=prev"/>
		<updated>2023-08-15T04:48:37Z</updated>

		<summary type="html">&lt;p&gt;Move page script moved page &lt;a href=&quot;/wiki/WoW:MACRO_click&quot; title=&quot;WoW:MACRO click&quot;&gt;MACRO click&lt;/a&gt; to &lt;a href=&quot;/wiki/WoW:MACRO_click&quot; title=&quot;WoW:MACRO click&quot;&gt;MACRO click&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:48, 15 August 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-19500:rev-19501 --&gt;
&lt;/table&gt;</summary>
		<author><name>Move page script</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:MACRO_click&amp;diff=19500&amp;oldid=prev</id>
		<title>WoWWiki&gt;Egingell: Created page with &#039;{{macroapi}} __NOTOC__  Simulate a mouse click on a frame of type &#039;&#039;Button&#039;&#039;.  /click options ButtonObj MouseButton Down  == Aliases == :&#039;&#039;none&#039;&#039;  ==Arguments== ;options : See [[…&#039;</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:MACRO_click&amp;diff=19500&amp;oldid=prev"/>
		<updated>2009-10-27T04:22:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{macroapi}} __NOTOC__  Simulate a mouse click on a frame of type &amp;#039;&amp;#039;Button&amp;#039;&amp;#039;.  /click options ButtonObj MouseButton Down  == Aliases == :&amp;#039;&amp;#039;none&amp;#039;&amp;#039;  ==Arguments== ;options : See [[…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{macroapi}} __NOTOC__&lt;br /&gt;
&lt;br /&gt;
Simulate a mouse click on a frame of type &amp;#039;&amp;#039;Button&amp;#039;&amp;#039;.&lt;br /&gt;
 /click options ButtonObj MouseButton Down&lt;br /&gt;
&lt;br /&gt;
== Aliases ==&lt;br /&gt;
:&amp;#039;&amp;#039;none&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
;options&lt;br /&gt;
: See [[Making a macro]] for instructions on how to properly use &amp;#039;&amp;#039;options&amp;#039;&amp;#039;.&lt;br /&gt;
;ButtonObj&lt;br /&gt;
: The button to click. If the frame&amp;#039;s type is not &amp;#039;&amp;#039;Button&amp;#039;&amp;#039;, this will silently fail.&lt;br /&gt;
;MouseButton&lt;br /&gt;
: The button you wish to simulate the click with. Accepts any value (LeftButton is the default). [[API_GetMouseButtonClicked|GetMouseButtonClicked]]() will return this value.&lt;br /&gt;
;Down&lt;br /&gt;
: Simulates a down-click. A value of &amp;quot;true&amp;quot; or &amp;quot;1&amp;quot; will cause a down-click. Any other value will not.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* This macro calls &amp;lt;code&amp;gt;[[API_Button_Click|ButtonObj:Click]](&amp;#039;&amp;#039;MouseButton&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Down&amp;#039;&amp;#039;)&amp;lt;/code&amp;gt; and triggers its [[UIHANDLER_OnClick|OnClick]], [[UIHANDLER_PreClick|PreClick]], and [[UIHANDLER_PostClick|PostClick]] scripts.&lt;br /&gt;
* The button must be clickable (&amp;lt;code&amp;gt;[[API_Button_EnableMouse|ButtonObj:EnableMouse]](true)&amp;lt;/code&amp;gt;) and enabled (&amp;lt;code&amp;gt;[[API_Button_Enable|ButtonObj:Enable]]()&amp;lt;/code&amp;gt;).&lt;br /&gt;
* Unlike physically clicking the mouse button, there is no up-click with a down-click and no down-click with an up-click and you can&amp;#039;t hold the virtual &amp;#039;&amp;#039;MouseButton&amp;#039;&amp;#039; down.&lt;br /&gt;
* This does not trigger the button&amp;#039;s [[UIHANDLER_OnMouseDown|OnMouseDown]] or [[UIHANDLER_OnMouseUp|OnMouseUp]] scripts.&lt;br /&gt;
* The macro system prevents infinite loops by not allowing the macro to click itself or click another macro that will return the click (no bouncing reflects here).&lt;br /&gt;
* The same syntax and options as [[MACRO_cast|cast]] can also be used with &amp;#039;&amp;#039;&amp;#039;click&amp;#039;&amp;#039;&amp;#039;. E.g. &amp;lt;code&amp;gt;/click [btn:1] ActionButton1; ActionButton2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/click [target=mouseover,exists] ActionButton1; ActionButton2&amp;lt;/code&amp;gt;, etc.&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;Egingell</name></author>
	</entry>
</feed>