DataType:action

From the wonderful RedGuides Wiki

An "action" is a type method that conducts a character or UI action with Command:/invoke. See examples, and toggle the list below to see all available actions.

In the official documentation, "actions" are referred to as "Methods".


This Data Type is added by core MacroQuest.
action is used as a return type by these members:  [ Toggle ]

Page Member Description
achievement Inspect Opens the achievement display window for this achievement
auratype Remove Removes aura
bandolier Activate Activate the specified bandolier profile
bazaaritem Select Allows you to select a bazaar item. /invoke ${Bazaar.Item[1].Select}
buff Remove removes the specified buff
character Dismount Dismounts the steed
Sit Sits down
Stand Stands up
StopCast interrupts cast
ground DoFace Will cause the toon to face the called for spawn if it exists
DoTarget Will cause the toon to target the called for spawn if it exists
Grab Picks up the ground spawn
Reset
item Inspect Opens the item display window for this item
macro Undeclared List all undeclared variables
menu Select Clicks a menu item.
merchant Buy[#] Buys # of whatever is selected with Merchant.SelectItem[xxx]
CloseWindow Will close the merchant window
OpenWindow Will open the merchant closest to you, or if you have a merchant target
SelectItem[xxx] Select item specified or partial match that fits.
Sell[#] Sell # of whatever is selected with Command:/selectitem. See examples
spawn DoAssist assists the spawn
DoFace Faces spawn
DoTarget targets spawn
LeftClick left clicks the spawn
RightClick Right clicks the spawn
spell Inspect Open an inspect window for the spell
switch Target Target the switch
Toggle Toggle the switch
Use
task Select Selects the task. Can select list items and combobox items.
timer Expire
Reset
Set
tradeskilldepot SelectItem[name] Select an item with the given name
WithdrawItem Withdraw the selected item from the window. If the item is a stack, a quantity window will appear.
WithdrawItem[name] Withdraw the named item. If the item is a stack, it will create a quantity window.
WithdrawStack Withdraw a full stack of the selected item.
WithdrawStack[name] Withdraw a full stack of the named item. Prefix with "=" for exact.
window DoClose Does the action of closing a window
DoOpen Does the action of opening a window
LeftMouseDown Does the action of clicking the left mouse button down
LeftMouseHeld Does the action of holding the left mouse button
LeftMouseHeldUp does the action of holding the left mouse button up
LeftMouseUp Does the action of clicking the left mouse button up
Move[x,y,width,height] Moves window to specified location and size.
RightMouseDown does the action of clicking the right mouse button
RightMouseHeld Does the action of holding the right mouse button
RightMouseHeldUp Does the action of holding the right mouse button up
RightMouseUp Does the action of clicking the right mouse button up
Select Selects the specified window
SetAlpha[0-255] Sets the alpha/opacity
SetBGColor[argb] Sets the window color
SetCurrentTab[#|name] If the window is a TabBox, set the current tab by index or by name.
SetFadeAlpha[0-255] Sets the faded alpha/opacity
SetText Set text to an edit box

Members

Examples

  • Target eqmule

/invoke ${Spawn[eqmule].DoTarget}

  • Switch to your bandolier named "bigfight"

/invoke ${Me.Bandolier[bigfight].Activate}

  • will open the merchant closest to you, or if you have a merchant target, that mrchant

/invoke ${Merchant.OpenWindow}

  • Select an item

/invoke ${Merchant.SelectItem[bottle of vinegar]}

  • Purchase 100 of the selected item

/invoke ${Merchant.Buy[100]}

See also