This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
action:Pause_Until [2016/04/11 09:24] peternlewis Separate Pause Until and Pause |
action:Pause_Until [2023/09/15 05:04] (current) peternlewis [Pause Until Action] |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{:action:pause-icon.png?nolink|}} | {{:action:pause-icon.png?nolink|}} | ||
- | ====== Pause Until ====== | + | ====== Pause Until Action ====== |
- | The //Pause Until// action pauses until conditions are met. | + | The //Pause Until// action pauses until criteria for conditions are met. |
- | ---- | + | {{:action:km-7.3-pause-until-default-screen.png?nolink|}} |
- | ===== 2. Pause Until ===== | + | By default (v11.0+) Keyboard Maestro will start to conserve CPU usage of this action if it runs for a long time (after 10 seconds it will conserve a little, after 60 seconds it will conserve a lot) by only checking the condition periodically. You can turn off this feature in the action (gear) ⚙ menu. |
+ | ===== Fields on the Pause Until Action ===== | ||
- | {{:action:pauseuntil.png|}} | ||
- | **For //Pause Until// select a condition:** | + | **Criteria for condition(s)** |
*Any of the following are true — at least one condition must be true. | *Any of the following are true — at least one condition must be true. | ||
*All of the following are true — every condition must be true. | *All of the following are true — every condition must be true. | ||
Line 17: | Line 17: | ||
*Not all of the following are true — at least one condition must be false. | *Not all of the following are true — at least one condition must be false. | ||
- | Add a new condition by clicking the green + button beside //New Condition// to select from a list of available conditions. | ||
- | For a great discussion on various techniques, see this KM Forum thread: | + | **Conditions** |
- | [[http://forum.keyboardmaestro.com/t/pause-until-action-is-complete/1803|Pause until action is complete]] | + | * Add one or more new conditions by clicking the green + button beside //New Condition// to select from a list of available conditions. |
+ | * Conditions are grouped by the following categories. See the [[:Conditions|Conditions]] section for further details. | ||
+ | * After selecting a condition category you can make further choices. For example, if you choose the //Application Condition// you can choose a specific application to be running, or at the front, and so on. | ||
+ | * Add further conditions by clicking the green + button again. | ||
- | Conditions are grouped by category. See the [[:Conditions|Conditions]] section for further details. | + | **List of Available Conditions** |
- | *[[condition:Application|Application]] | + | |
- | *[[condition:Button|Button]] | + | |
- | *[[condition:Calculation|Calculation]] | + | |
- | *[[condition:Calculation|Clipboard]] | + | |
- | *[[condition:Environment_Variable|Environment Variable]] | + | |
- | *[[condition:Found_Image|Found Image]] | + | |
- | *[[condition:Key|Key]] | + | |
- | *[[condition:Location|Location]] | + | |
- | *[[condition:Macro|Macro/Macro Group]] | + | |
- | *[[condition:Menu|Menu]] | + | |
- | *[[condition:Modifiers|Modifiers]] | + | |
- | *[[condition:Mounted_Volume|Mounted Volume]] | + | |
- | *[[condition:Path|Path]] | + | |
- | *[[condition:Pixel|Pixel]] | + | |
- | *[[condition:Script|Script]] | + | |
- | *[[condition:Text|Text]] | + | |
- | *[[condition:Typed_String|Typed String]] | + | |
- | *[[condition:USB_Device|USB Device]] | + | |
- | *[[condition:Variable|Variable]] | + | |
- | *[[condition:Any_Window|Any Window]] | + | |
- | *[[condition:Front_Window|Front Window]] | + | |
- | *[[condition:Wireless_Network|Wireless Network]] | + | |
- | After selecting a condition category you can make further choices. For example, if you choose the //Application Condition// you can choose a specific application to be running, or at the front, and so on. | + | ~~NOCACHE~~ |
+ | <nspages condition -textPages=""> | ||
- | Add further conditions by clicking the green + button again. | + | ===== Examples ===== |
+ | **1. Pause Until the "Finder" app is at front, and the <kbd>⌘</kbd> key is pressed.** | ||
- | ---- | + | {{:action:pauseuntil.png|}} |
- | ===== See Also ===== | + | **2. Pause Until the Mouse Is Clicked** |
- | ---- | + | {{:action:km-7.3-pause-until-mouse-click.png?nolink|}} |
+ | |||
+ | For a discussion or other approaches, see this [[https://forum.keyboardmaestro.com/t/feature-request-pause-until-mouse-click/3960/2?u=jmichaeltx|Forum Post]]. | ||
+ | |||
+ | ===== See Also ===== | ||
=== Actions === | === Actions === | ||
- | * [[action:Pause Until|Pause Until]] | + | * [[action:If Then Else|If Then Else]] action |
- | * [[action:Until|Execute Action Until Conditions Met]] | + | * [[action:For_Each|For Each]] action |
- | * [[action:While|Execute While Conditions Met]] | + | * [[action:Repeat|Repeat]] action |
+ | * [[action:Until|Until]] action | ||
+ | * [[action:While|While]] action | ||
+ | * [[action:Assert|Assert]] action | ||
+ | * [[actions:Redirect_Control_Flow|Redirect Control Flow]] actions | ||
* [[:Actions|See all Actions]] | * [[:Actions|See all Actions]] | ||
- | |||
- | ---- | ||
==== Forum ==== | ==== Forum ==== | ||
- [[https://forum.keyboardmaestro.com/t/issue-pause-until-action-fails-with-no-windows/3022/7|ISSUE: PAUSE UNTIL Action Fails with No Windows]] | - [[https://forum.keyboardmaestro.com/t/issue-pause-until-action-fails-with-no-windows/3022/7|ISSUE: PAUSE UNTIL Action Fails with No Windows]] |