Difference between revisions of "Constraint: Macro(s) Enabled/Disabled"

 
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 whether selected macros are enabled or disabled.</pre>
  
This constraint can be used to a allow something to happen only when the specified macro(s) are enabled or disabled.
+
''' Options '''
 +
 
 +
* '''Enabled''': Constraint passes only when selected macros are enabled
 +
* '''Disabled''': Constraint passes only when selected macros are disabled
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Warn if a key macro is disabled when you unlock the phone''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Screen Unlocked</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Display Notification: "Night Mode macro is disabled"</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Macro(s) Enabled/Disabled - Disabled (Night Mode)</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger: Macro enabled|Macro enabled Trigger]]

Latest revision as of 11:50, 9 January 2026

This constraint allows or prevents a macro/feature from running based on whether selected macros are enabled or disabled.

Options

  • Enabled: Constraint passes only when selected macros are enabled
  • Disabled: Constraint passes only when selected macros are disabled

Example

Example 1: Warn if a key macro is disabled when you unlock the phone

Triggers

Screen Unlocked
Actions

Display Notification: "Night Mode macro is disabled"
Constraints

Macro(s) Enabled/Disabled - Disabled (Night Mode)

See Also