Originally Posted by
Hoaxeh
Hey,
I have run across a the SetBindingMacro() command and was interested in using this. However if you want to bind a macro with this, you also need up a macro slot. And since I've recently ran out of those, I was wondering if you could bind Macro Commands directly to keys.
I'm aware of existing addons that can increase your macro slots capacity, but I'm not really interested in using one of those.
Also would be greatly appreciated if these binds would be stored server-side.
TL;DR: how do I bind macro commands, directly to keys without using macro slots.
Thanks!
EDIT:
I've tried making my own commands using an addon and creating bindings.xml.
I guess I can achieve it this way, but I don't think I'll be able to cast spell this way, since everything is protected.
This is what I've came up with:
Code:
local btn = CreateFrame("Button", "macro1", UIParent, "SecureActionButtonTemplate");
btn:SetAttribute("type", "macro");
btn:SetAttribute("macrotext", "/say bye \n/cast hearthstone");
And I bind this using:
Code:
/run SetBindingClick("KEY","macro1")