Difference between revisions of "Constraint: Stopwatch"
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | <pre | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current stopwatch state.</pre> |
| − | This constraint | + | |
| − | </pre> | + | ''' 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]] | ||
Latest revision as of 13:49, 9 January 2026
This constraint allows or prevents a macro/feature from running based on the current stopwatch state.
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
Triggers Screen On/Off - Screen Off
Actions Control Media (Pause)
Constraints Stopwatch - Running
See Also