Why inject :P Lua is easy,
Code:
/run for i=1,40 do local B=UnitBuff("player",i); if B == "Killing Machine" then EditMacro('testtesttest', 'testtesttest', 12, 'cast1', 1, 1) else EditMacro('testtesttest', 'testtesttest', 12, 'cast2', 1, 1) end endj
Fix that to what you need.then have auto hotkey hit 2 keys
that macro, and the actual macro you edit to cast. Problem solved :P
or use the send command. Send that lua script then send /cast testtesttest or whatever you name the macro
ORRR *sorry insomina is a bitch and ideas flow :P)
have 2 macros
first macro is the lua script with /cast *macronamehere*
and on *macronamehere*
/cast testtesttest
What it will do is run lua and click macronamehere
and macro name here will cast macro that lua from first macro edited