Multiple line macros using the macrotext attribute of a SecureActionButtonTemplate?
I'm looking to make a multi-line macro (and have it work) in my MagnetButtons addon, that uses SecureActionButtonTemplate. I would rather not do what addons like VuhDo do and create actual character macros to do multi-line macros (I assume that's why they are there). Is there any way to have multiple macro calls in a single macrotext attribute?
Edit: What format do I use for newlines, that works in this case? /cleartarget /stopcasting /script ToggleGameMenu(); StaticPopup1:Hide() |
Just use the '\n' between each lines.
|
Quote:
|
Do you mean something like:
Lua Code:
Slash: Code:
/mcr /cleartarget\n/stopcasting\n/script ToggleGameMenu(); StaticPopup1:Hide() |
As mentioned "\n" will work:
Code:
local macrotext = "/cleartarget\n/stopcasting\n/script ToggleGameMenu(); StaticPopup1:Hide()" Code:
local macrotext = Code:
local addonName = ... |
Quote:
|
All times are GMT -6. The time now is 09:17 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI