Browse the docs

Keyboard Maestro conditions

Keyboard Maestro conditions and their equivalents.

Every Keyboard Maestro condition and what it becomes. A condition with several kinds (variable tests, text tests) lists every Switchboard condition its kinds use.

Keyboard Maestro conditionSwitchboardNotes
VariableVariable, ScriptNo variable was chosen in Keyboard Maestro for this condition. Pick the variable; it reads as empty text
TextVariable, Set variable, Script
CalculationScriptNo calculation was set in Keyboard Maestro. Enter the calculation to test. The condition is never met until it is fixed
ClipboardCompare text, Clipboard holdsClipboard type "" is checked as written
ApplicationScriptNo application was chosen in Keyboard Maestro. Pick the application to test. The condition is never met until it is fixed
Front WindowTime of day, Window title, Front window state
Any WindowWindow title"any window" is checked against the front window's title only
ButtonScriptNo button was chosen in Keyboard Maestro. Pick the button to test. The condition is never met until it is fixed
MenuScriptNo menu item was chosen in Keyboard Maestro. Pick the menu item to test. The condition is never met until it is fixed
ModifiersScriptNo modifier keys were chosen in Keyboard Maestro. Pick the keys to test. The condition is never met until it is fixed
KeyScriptNo key was chosen in Keyboard Maestro. Pick the key to test. The condition is never met until it is fixed
Mouse ButtonKey or button heldMouse button 0 is read as button 1 (1 = left, 2 = right, 3 = middle); check it
Mounted VolumeScriptNo disk was chosen in Keyboard Maestro. Pick the disk to test. The condition is never met until it is fixed
PathFile exists
File AttributeFile attributeNo file attribute was chosen in Keyboard Maestro. It tests the file's name; pick the attribute
Found ImageImage foundThe picture to look for isn't in the macro. Capture it again
PixelPixel colourThe colour to compare with couldn't be read; set it in the condition (it is black now)
OCRText on screen
ScriptScript
LocationLocationThe location radius is read as metres; the Mac's location needs the Location permission
Macro / Macro GroupScriptNo macro was chosen in Keyboard Maestro. Pick the macro to test. The condition is never met until it is fixed
Environment VariableCompare textNo environment variable name was set in Keyboard Maestro (or it is worked out at run time). Fill in the name
Action ResultLast action result, Variable, Script
Typed StringCompare text
USB DeviceUSB device connected
Wireless NetworkNetwork
Condition list combiner (All / Any / None / Not All)ScriptThe condition type "(list)" isn't one Switchboard knows. The condition is never met until it is fixed
Switch case: is (TestValue)ScriptThe condition type "Is" isn't one Switchboard knows. The condition is never met until it is fixed
Switch case: contains (TestValue)ScriptThe condition type "Contains" isn't one Switchboard knows. The condition is never met until it is fixed
Switch case: otherwiseScriptThe condition type "Otherwise" isn't one Switchboard knows. The condition is never met until it is fixed