| Line 1: |
Line 1: |
| − | <span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span> | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current stopwatch state.</pre> |
| | | | |
| − | This constraint can be used to allow/prevent actions being run based on the current value of the selected stopwatch.
| + | ''' Options ''' |
| | + | |
| | + | * '''Running''': Constraint passes only when the stopwatch is running |
| | + | * '''Stopped''': Constraint passes only when the stopwatch is stopped |
| | + | |
| | + | ''' Example ''' |
| | + | |
| | + | ''Example 1: Pause music when the stopwatch is running and the screen turns off'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Screen On/Off - Screen Off</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Control Media (Pause)</pre> |
| | + | <pre class="constraint-style">Constraints |
| | + | |
| | + | Stopwatch - Running</pre> |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger: Stopwatch|Stopwatch Trigger]] |