Hello,
is it possible to execute actions as soon as the mouse is over a specific window?
Background to the question: I use BetterDisplay to display a virtual monitor in a window. (I share this for presentations – I love it).
There is one small drawback: in order to work on this monitor, I first have to bring the focus to it by holding down Cmd and clicking on the window. This causes BD to place the mouse pointer on this screen.
The reverse works in the same way: there is a key combination that I can use to take the focus away from this screen again.
This is exactly what I want to automate: as soon as I move the mouse pointer over this window, the focus should be set.
Unfortunately, I haven't found a way in BTT to respond to such mouse events.
Thanks for any helpful advice!
Simon
The problem is, this needs polling and therefore will use some CPU. There is no notification to see whether the hovered window has changed.
You can configure it like this using the "Trigger On Change Of Advanced Trigger Condition" trigger with the "hovered_element_details" variable:
Maybe you could enable that trigger only in certain situations?
Ah, I see. Polling is not what I want… there is no condition where I could decids on it makes sense to start polling.
My question was just to get a workaround for another problem I still have. I want to have Streamdeck buttons which maximize/minimize the Betterdisplay window and perform the according keystrokes to bring the mouse pointer into the screen. But for some reason, I cannot identify the window to activate it.
But that’s another story - I will perhaps write a follow up quesiton to that.
Thanks Andreas!