Hi friends,
I believe this started in 10.2.
This quick bit of code: (it’s in a loop)
local command, key1, key2 = GetBinding( i )
local spell = GetBindingActionText( command )
if command == "ACTIONBUTTON9" then
print(spell,":" ,command,":", key1,":", key2)
end
This example will return the name of the macro on key ‘9’ most of the time. If the macro contain /cast, it will return nil.
Result of the print:
“nil : ACTIONBUTTON9 : BINDING_HEALDER_ACTIONBAR : 9”
If I use a macro without /cast
“testNoCast : ACTIONBUTTON9 : BINDING_HEALDER_ACTIONBAR : 9”
I don’t know if this is intentional or not!