Focus target macro

hi this macro
#showtooltip
/focus [@mouseover,nodead,exists];[@target,exists]
work as intended but when i want to deselect a focus target, i can’t do it with the same macro as /focus i wonder if i can improve it so i can also deselect a focus when i have no target?

Give this a try:

/clearfocus [@target,noexists]
/focus [@mouseover,nodead,exists][@target,exists]

2 Likes