Difference between revisions of "Constraint: Trigger Fired"
| Line 1: | Line 1: | ||
| − | < | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on which trigger fired the macro.</pre> |
| − | + | ''' Options ''' | |
| − | + | * '''Trigger''' - Select the trigger to match | |
| + | |||
| + | ''' Example ''' | ||
| + | |||
| + | ''Example 1: When YouTube is launched force landscape mode and cancel when YouTube is closed'' | ||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Application Launched (YouTube) | ||
| + | Application Closed (YouTube)</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | If (Trigger Fired Application Launched) | ||
| + | Force Screen Rotation (Force Landscape) | ||
| + | ELSE | ||
| + | Force Screen Rotation (Cancel Force Mode) | ||
| + | ENDIF</pre> | ||
Latest revision as of 14:04, 9 January 2026
This constraint allows or prevents a macro/feature from running based on which trigger fired the macro.
Options
- Trigger - Select the trigger to match
Example
Example 1: When YouTube is launched force landscape mode and cancel when YouTube is closed
Triggers Application Launched (YouTube) Application Closed (YouTube)
Actions If (Trigger Fired Application Launched) Force Screen Rotation (Force Landscape) ELSE Force Screen Rotation (Cancel Force Mode) ENDIF