Add new Trigger Condition

Couldn't find or configure Condition:
"Trigger while mouse over menubar and NOT behind Notch"

Pls give clue is it currently posible and how to acheive that?

Business problem that I want to resolve is to have the ability to make RButton mouse click over menu bar in browser apps and go to next tab; while when clicking the same RButton but behind the Notch is supposed to switch to previous tab

You can represent that with the advanced trigger conditions as:

hovered_element_details CONTAINS " AXRole: \"AXMenuBar\"" AND mouse_behind_notch == 0

right-click-menubar-not-over-notch.bttpreset (2.8 KB)

Thanks, it's works; but seems in strange way:

  • initially RButton click over menubar switches tab forward

  • then RButton click behind notch switches tab backward

  • after that RButton each click over menubar switches tab backward, untill I make LButton click anywhere in browser window and only then RButton click over menubar works properly again
    exported_triggers.bttpreset (5.1 KB)

True :sweat_smile:

mouse_behind_notch sticks at 1 until you left click somewhere else. Seems related to the bug at "Move Mouse Out of Notch & Menubar" Not Being Triggered and similarly seems to only occur when there is no 'Move mouse into notch' trigger.

You could mitigate it by adding a dummy 'move mouse into notch' trigger that does nothing, but I’d probably keep the matter self-contained by using mouse_pos_percent_x rather than relying on the buggy mouse_behind_notch detection at all.

On my 14" MacBook Pro the numbers work out as:

Over the Notch

hovered_element_details CONTAINS "   AXRole:  \"AXMenuBar\"" AND mouse_pos_percent_x > 44 AND mouse_pos_percent_x <= 56

Not over the Notch

hovered_element_details CONTAINS "   AXRole:  \"AXMenuBar\"" AND (mouse_pos_percent_x <= 44 OR mouse_pos_percent_x > 56)```
1 Like

Ah I think I see why it's not being reset. I'll fix it with the next alpha

2 Likes

It did the job, Great thanks!