User Tools

Site Tools


trigger:Application

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
trigger:Application [2016/08/28 11:06]
alain JMTX template + add forum link & internal links + forum Google search
trigger:Application [2018/07/02 02:17]
JMichaelTX Needs Review
Line 1: Line 1:
 +{{:​trigger:​app-trigger-icon-km8.png?​nolink|}}
 +
 +====== Application Trigger ======
 +
 The //​Application trigger// allows you to execute a macro when an specified application (or any application) does any of the following: The //​Application trigger// allows you to execute a macro when an specified application (or any application) does any of the following:
  
-Launches +FIXME [JMichaelTx] ​ This needs testing/​confirmation:​ 
-Quits + 
-Is Running (the macro executes repeatedly). +^ Trigger Type ^ Macro Group Type ^ 
-* Activates +Launches ​| global | 
-* Deactivates +Quits | app specific | 
-Is Active (the macro executes repeatedly).+| Activates | app specific | 
 +| Deactivates | app specific | 
 +Is Running (the macro executes repeatedly). ​| app specific | 
 +Is Active (the macro executes repeatedly). | app specific | 
 + 
 +Of course, all macros are active when in a global (//​Available in all applications//​) macro group, but a macro with the //​Launches//​ trigger //must// be in a global group.
  
 An application Activates when it comes to the foreground, and deactivates when another application comes to the foreground. An application Activates when it comes to the foreground, and deactivates when another application comes to the foreground.
  
 You could use a trigger like this to simulate workspaces by automatically setting up an application the way you want when you launch it, or you could clean up after an application when you quit. You could use a trigger like this to simulate workspaces by automatically setting up an application the way you want when you launch it, or you could clean up after an application when you quit.
 +
 +FIXME [JMichaelTx] ​ The below is inconsistent with my testing. ​ I just created a Macro to trigger on Excel activation, in a Macro Group available ONLY in Excel, and it fired when Excel launched.
  
 **Caution**:​ As with all triggers, the trigger will fire only if the Macro Group that contains it is active, which is based on the current foreground application **before** the specified application launches, or **after** the specified application is deactivated or quits. ​ In practice, this means the Macro Groups that contain this trigger should be targeted at All Applications. **Caution**:​ As with all triggers, the trigger will fire only if the Macro Group that contains it is active, which is based on the current foreground application **before** the specified application launches, or **after** the specified application is deactivated or quits. ​ In practice, this means the Macro Groups that contain this trigger should be targeted at All Applications.
Line 49: Line 60:
 - [[https://​forum.keyboardmaestro.com/​t/​application-dock/​4747|Application Dock]] - [[https://​forum.keyboardmaestro.com/​t/​application-dock/​4747|Application Dock]]
  
-- [[https://www.google.fr/search?q=site:​forum.keyboardmaestro.com+Application+Trigger|Keyboard Maestro Forum topics about Trigger Application]] +- [[https://forum.keyboardmaestro.com/​search?​q=Application%20Trigger|Keyboard Maestro Forum topics about Trigger Application]]
- +
-==== External References ==== +
trigger/Application.txt · Last modified: 2020/11/01 21:25 by peternlewis