I have some code to make many actionButton and 1 of the buttons has to have 2 macros, 1 for shift left click and another for right click, but whenever I shift left click, it always executes the macro of right click.
Here is my code:
Lua Code:
if toyList[i].type2 then --if there is a macro for right click, set it
btn:SetAttribute("type2", "macro");
btn:SetAttribute("macrotext", toyList[i].type2);
end
if toyList[i].stype1 then --if there is a macro for shift+left click, set it
print(toyList[i].stype1)
btn:SetAttribute("shift-type1", "macro");
btn:SetAttribute("macro1", toyList[i].stype1);
end
Any help would be great =)