WoW:API RunMacroText: Difference between revisions
(based on the use in securetemplates.lua) |
m (Move page script moved page API RunMacroText to API RunMacroText without leaving a redirect) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 14: | Line 14: | ||
== Example == | == Example == | ||
RunMacroText("/cast | RunMacroText("/cast Immolate") | ||
=== Result === | === Result === | ||
Casts | Casts immolate (if executed in an untainted context). | ||
Latest revision as of 04:47, 15 August 2023
← WoW API < RunMacroText
This function is PROTECTED, and can only be called from Blizzard code.
|
Execute a string as if it was a macro.
Parameters
Arguments
- "macro"
- String - the string is interpreted as a macro and then executed
Returns
- nil
Example
RunMacroText("/cast Immolate")
Result
Casts immolate (if executed in an untainted context).