User Tools

Site Tools


action:Pause

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
Last revision Both sides next revision
action:Pause [2016/04/09 04:49]
AlainLifchitz JMTX template + add internal links
action:Pause [2019/07/04 02:55]
peternlewis
Line 1: Line 1:
-{{:​action:​pause-icon.png?​nolink|}} +====== Pause ======
-====== Pause Actions ​======+
  
-There are two Pause [[:​Actions|actions]]:​ +The //​Pause// ​action pauses for a number of seconds. You may enter a calculation for the number of seconds. Enter the number or calculation in the //Pause for// text area. 
-  - //​Pause ​for// a number of seconds. You may enter a calculation for the number of seconds. Enter the number or calculation in the //Pause for// text area.  +
-  - //Pause Until// which pauses until conditions are met.+
  
-----+{{ pause-action.png?​nolink&​424x178 | Pause Action }}
  
-===== 1. Pause for n Seconds ===== +You can pause for a number of hundredths of a second, seconds, minutes or hours.
-{{:​action:​km-pause-action-variable.png?​nolink|}}+
  
- +Note that it is generally not great idea to pause for long period ​of time - the macro might be interrupted, the situation on the Mac might change, the Mac might go to sleep, and also Keyboard Maestro Engine will be wasting CPU doing nothing while the macro runs.
----- +
- +
-===== 2. Pause Until ===== +
- +
- +
-{{:​action:​pauseuntil.png|}} +
- +
-**For //Pause Until// select a condition:​** +
-  *Any of the following are true — at least one condition must be true. +
-  *All of the following are true — every condition must be true. +
-  *None of the following are true — no condition ​is true. +
-  *Not all of the following are true — at least one condition must be false. +
- +
-Add new condition by clicking the green + button beside //New Condition// ​to select from list of available conditions. +
- +
-For a great discussion on various techniques, see this KM Forum thread: +
-[[http://​forum.keyboardmaestro.com/​t/​pause-until-action-is-complete/​1803|Pause until action is complete]] +
- +
-Conditions are grouped by category. See the [[:​Conditions|Conditions]] section for further details. +
-  *[[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 exampleif you choose ​the //​Application Condition// you can choose a specific application to be runningor at the front, and so on. +
- +
-Add further conditions by clicking ​the green + button again. +
- +
- +
-----+
  
 ===== See Also ===== ===== See Also =====
- 
----- 
  
 === Actions === === Actions ===
  
 +* [[action:​Pause Until|Pause Until]]
 * [[action:​Until|Execute Action Until Conditions Met]] * [[action:​Until|Execute Action Until Conditions Met]]
 * [[action:​While|Execute While Conditions Met]] * [[action:​While|Execute While Conditions Met]]
 * [[:​Actions|See all Actions]] * [[:​Actions|See all Actions]]
  
----- 
- 
-==== Forum ==== 
  
-- [[https://​forum.keyboardmaestro.com/​t/​issue-pause-until-action-fails-with-no-windows/​3022/​7|ISSUE:​ PAUSE UNTIL Action Fails with No Windows]] 
action/Pause.txt · Last modified: 2019/07/04 02:56 by peternlewis