Difference between revisions of "Triggers"
(→List of Triggers: Added "Popup Message" page) Tags: Mobile web edit Mobile edit |
|||
(4 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
A trigger is an instantaneous event that your device can detect to make a macro run. A macro must have at least one trigger to be valid. | A trigger is an instantaneous event that your device can detect to make a macro run. A macro must have at least one trigger to be valid. | ||
− | For a trigger to fire, the macro must be | + | For a trigger to fire, the macro must be enabled (i.e. ready to run, not disabled) at the exact time the event occurs. |
+ | </pre> | ||
It is possible to add multiple triggers to a single macro and in this case any single trigger firing will cause the macro to be invoked. | It is possible to add multiple triggers to a single macro and in this case any single trigger firing will cause the macro to be invoked. | ||
Line 9: | Line 10: | ||
As an alternative to combining triggers with an AND statement it is generally possible to add constraint logic to individual triggers such that they can be limited to fire when only some other state is also true. | As an alternative to combining triggers with an AND statement it is generally possible to add constraint logic to individual triggers such that they can be limited to fire when only some other state is also true. | ||
− | |||
= List of Triggers = | = List of Triggers = | ||
Line 126: | Line 126: | ||
[[Trigger: Notification Bar Button|Notification Bar Button]] | [[Trigger: Notification Bar Button|Notification Bar Button]] | ||
+ | |||
+ | [[Trigger: Popup Message|Popup Message]] | ||
[[Trigger: Power Button Long Press|Power Button Long Press]] | [[Trigger: Power Button Long Press|Power Button Long Press]] |
Latest revision as of 00:36, 24 January 2025
A trigger is an instantaneous event that your device can detect to make a macro run. A macro must have at least one trigger to be valid. For a trigger to fire, the macro must be enabled (i.e. ready to run, not disabled) at the exact time the event occurs.
It is possible to add multiple triggers to a single macro and in this case any single trigger firing will cause the macro to be invoked.
It is not possible to combine triggers with AND logic when using Trigger Fired constraint (Basically saying "If trigger 1 fired AND trigger 2 fired") because a trigger is an instantaneous event, so it is not possible (or highly improbable) to get a state where two instantaneous events happen at exactly the same time. There's always exactly 1 trigger that started an execution of your macro actions.
As an alternative to combining triggers with an AND statement it is generally possible to add constraint logic to individual triggers such that they can be limited to fire when only some other state is also true.