hey there
i found this code on a profile and i need help
if IsMouseButtonDown() then
if UnitAffectingCombat("player") then
RunMacroText("/click "..GetMouseFocus():GetName())
end
end
i really like to be able to cast stuff that are not in the rotation when i want... but i would like to do it with the keyboard buttons not with the mouse buttons.... so i tried something like this (so that it would cast the ability i have put on the "2" button on my keyboard):
if Is2KeyButtonDown() then
if UnitAffectingCombat("player") then
RunMacroText("/click "..GetKeyFocus():GetName())
end
end
but it doesnt work... gives an error... says that "2Key" is a nil value...
so i would like to know what the code is to get it work with any keyboard button
for example i tried with:
if IsKeyboardButtonDown() then
if UnitAffectingCombat("player") then
RunMacroText("/click "..GetKeyboardFocus():GetName())
end
end
but that doesnt work as well...
thanks for the help in advance
awaiting ur reply
