User Tools

Site Tools


Conditions

Differences

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

Link to this comparison view

Next revision
Previous revision
Conditions [2015/07/07 04:38]
peternlewis created
Conditions [2017/09/07 01:53] (current)
peternlewis
Line 7: Line 7:
 * None of the following are true – no condition is 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. * Not all of the following are true – at least one condition must be false.
- 
-This is followed by a set of specific conditions.  ​ 
  
 Caution: **If there are no conditions in the set at all, the action will typically not execute anything** except the Until action which will execute the actions once.  **Neither** side of the *If Then Else* will execute. Caution: **If there are no conditions in the set at all, the action will typically not execute anything** except the Until action which will execute the actions once.  **Neither** side of the *If Then Else* will execute.
 +
 +Generally, a screen image and pixel conditions should be considered a last resort, but there are certain cases where it may be useful – keep in mind that you can use expressions for calculating the location of the pixel too.
 +
 +When talking about matches, note that “is” refers to equality, “contains” looks for a substring, “matches” uses regular_expression matching, and “conforms” refers to Universal Type Identifier matching (eg public.text).
  
 The available conditions include: The available conditions include:
Line 16: Line 18:
 ~~NOCACHE~~ ~~NOCACHE~~
 <nspages condition -textPages="">​ <nspages condition -textPages="">​
 +
 +===== See Also =====
 +
 +=== Actions ===
 +
 +* [[action:If Then Else|If Then Else]]
 +* [[action:​Pause_Until|Pause Until Conditions Met]]
 +* [[action:​Switch or Case|Switch or Case]]
 +* [[action:​For_Each|For Each]] action
 +* [[action:​Repeat|Repeat]] action
 +* [[action:​Until|Until]] action
 +* [[action:​While|While]] action
 +* [[actions:​Redirect_Control_Flow|Redirect Control Flow]] actions
 +* [[:​Actions|See all Actions]]
 +
 +==== Forum ====
 +
 +- [[https://​forum.keyboardmaestro.com/​t/​compare-strings/​3198/​10|Compare strings?]]
 +- [[https://​forum.keyboardmaestro.com/​t/​need-window-condition-front-window-changes/​3619/​8|Need Window Condition: Front Window Changes]]
 +
 +
Conditions.1436258325.txt.gz · Last modified: 2015/07/07 04:38 by peternlewis