Starting with BTT 3.860, every trigger does have advanced trigger conditions. If a trigger is triggered, BTT will evaluate these conditions and only if they are fulfilled it will execute the trigger's assigned actions.
Example: Use one gesture for all your window snapping needs
This example makes use of the "percent_x_hovered_win_btm_left / percent_y_hovered_win_btm_left" variable to execute different actions depending on the location of the mouse in the hovered window:
Details on how to set this up: https://community.folivora.ai/t/using-one-gesture-for-all-your-window-management/28336
Another example: use the number of fingers touching the trackpad to execute different functionality: https://community.folivora.ai/t/use-number-of-fingers-touching-the-trackpad-as-modifier-for-keyboard-shortcuts/28272
How to Setup Trigger Conditions
Currently the following variables are available and can be used in conditions:
Information about UI elements
- This lets you check for specific windows. You can see the list of currently visible windows by clicking the "Visible Windows Viewer" button on the top right. Afterwards you can use the "contains" condition to check whether the list contains a specific window.
- This gives information about the currently hovered UI element. You can view the current information by pressing the "UI Element Viewer. You can use the "contains" condition to check if the details shown in the "UI Element Viewer" contain a specific text.
- The hex color of the pixel at the cursor location
- If a thumb has been recognized on the trackpad, this will be one. Otherwise 0
Mouse Position (from Top Left Corner:)
Mouse position in active window:
Frame of screen with mouse:
Frame of screen with focused window:
Any custom variable you define can also be used.