Just thought some people would enjoy this macro, so here it is !
What it does is it makes your focus target your mouseover and then inspects them and prints a message saying who and what class you're inspecting. If you don't have a mouseover target your focus is cleared and a chat message is produced saying your focus was cleared.
Same thing with no messages:Code:/focus mouseover /run if UnitExists("focus") then InspectUnit("focus"); ChatFrame1:AddMessage("Now Inspecting: "..UnitName("focus").." ("..UnitClass("focus")..")") else ChatFrame1:AddMessage("-- Focus Cleared") end
EnjoyCode:/focus mouseover /run if UnitExists("focus") then InspectUnit("focus") end