Active app in If Condition

Hello! I want to use the three-finger swipe up gesture to quit (cmd+Q) the app under the cursor. However, I want it to not quit if the cursor is over Chrome, but instead trigger cmd+W to close the tab.

I have already set three-finger swipe up to be cmd+W in Chrome. But when using split-screen, with different apps on the left and right sides, if I forget to activate the Chrome window, swipe up becomes cmd+Q and quits Chrome.

you would need to use "hovered_element_details" instead. Look at the "Hovered
UI Element Viewer" to see what you can match for:

1 Like

Yes, exactly! This is what I wanted, and it’s successfully set up now—thank you! I completely missed the hovered option! So, does ‘focused_window_title’ only capture the window title at the moment the trigger is activated and won’t update with ‘activate’ or ‘wait for change of focused window’? Or is there a way to refresh the value of ‘focused_window_title’?