Difference between revisions of "Constraint: Stopwatch"

m
 
(One intermediate revision by one other user not shown)
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>
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
 
This constraint can be used to allow/prevent actions being run based on the current value of the selected stopwatch.
+
''' Options '''
</pre>
+
 
 +
* '''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