Changes

no edit summary
Line 1: Line 1: −
This constraint can be used to allow/prevent functionality from running, depending whether one or more apps are or are not currently running.
+
<pre class="header-style">This constraint allows or prevents a macro/feature from running based on whether a selected app is currently running in the foreground.</pre>
 +
 
 +
''' Options '''
 +
 
 +
* '''Running''': Constraint passes only when the selected app is running in the foreground
 +
* '''Not running''': Constraint passes only when the selected app is not running in the foreground
 +
* '''Application''' - Choose the app to check
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Launch a media app only if it is not already running''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Bluetooth Event - Device Connected</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Launch Application: Spotify</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Application Running - Not running (Spotify)</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger: Application Launched/Closed|Application Launched/Closed Trigger]]
 +
* [[Action: Launch Application|Launch Application Action]]