Quantcast
WoWInterface - View Single Post - WeakAuras 2 button with macro
View Single Post
04-29-20, 06:56 AM   #2
Urtgard
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 21
Enable Lua errors:
Code:
/console scriptErrors 1
The second " indicates the end of macrotext.
Therfore in example 2 your macrotext is cut off.

If you want to use special characters inside a string you must escape them.
Code:
local macrotext = "/script SetLootMethod(\"group\")"
  Reply With Quote