I stole this format of macro when I saw it on another post on mmo-champion, and tried tweaking it to work for Kick. Basically it'll yell out kick in party when i kick someone, but only yell it when kick works, so it doesnt spam.
#showtooltip Kick
/cast [target=focus] kick; kick
/run start,duration,enable=GetSpellCooldown("Kick");if(start==0)then SendChatMessage("%t has been KICKED!!", "PARTY", nil, UnitName("focus"));end
Now, it does work. If i run towards focus, it'll kick the focus. If i face my maintarget, it'll kick him instead. No need for a modifier there.
But, the chat message it sends to party doesn't yell out which target i kicked, only the targets name i have targeted.
Is there any way to make it say the name of who I kicked? Focus or maintarget?