Mouseover Not During Mouselook?

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.

Solves?

Turn you mouse visibility on all the time? Or at least always on if in combat. What is “I’m in mouse look?”

if you hold down your button it moves the camera instead of the mouse cursor

mouse look refers to when you hold the right mouse and your cursor actually becomes invisible until you let it up, this is how you look around in game

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.

All this random stuff is why i just use clique instead of writing macros for everything lol

incedibly helpful, thank you. I figured I wasn’t the first person to have this problem but can’t seem to find a solve. if I do ill post it here

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