Is there a way I can write a macro that would work only if my cursor is visible?
the problem is I keep “mousing over” targets and scattering the wrong person when I can’t even see my mouse cursor because im in mouse look.
my current macro is:
/cast [@mouseover, harm, nodead] [ 1] spell (I stuck a 1 in here, its usually blank, but forum commands are being triggered)
the problem is I either have to have a separate keybind for every spell I wish to have mouse over versions of, or I have to deal with it randomly selecting another target when my invisible mouse is on them.
Oh, never heard that called “mouse look”, but yeah that does hide the cursor. I didn’t think @mouseover would work while the cursor’s hidden but I guess that’s an issue.
I would’ve thought if it’s not described in the UI and Macro pinned topics that it’s not there, but it seems there’s a lot of micro-scripting you can do inside a macro. Maybe there’s a flag for visibility that can be retrieved.
I wish I knew the API better, but I think you can likely get what you want. Just as an example, I copied this macro script from Wowhead to check the training status on the Ruby Whelp Shell trinket (just to show you can access a lot of stuff via scripting within a macro).
#showtooltip
#Whelp Training Status
/run for i=2148,2153,1 do V=C_CurrencyInfo.GetCurrencyInfo(i); print(V.name.." - discovered:",tostring(V.discovered)..", quantity:",tostring(V.quantity)) end