app conditionDescription:
The app condition checks to see if an application is running and/or if it’s in focus, by checking the window title and/or process name.
Parent: all, any, condition, conditions, none, not , wait
Value (simple form): string specifying process name and/or window title (checks if either match, and if running and in focus)
Value (key/value form):
title: string, optional, specifying window title (checks if specified title is contained in actual title)process: string, optional, specifying process file name, path and extension optional (checks file name and full name)focus: boolean, optional, specifying if must be in focus (default: true if running not specified, null otherwise)running: boolean, optional, specifying if must be running (default: true)# simple form
app: (string)
# simple example
app: notepad.exe
# key/value form
app:
process: (string, required if `title` not supplied)
title: (string, required if `process` not supplied)
focus: (boolean, optional)
running: (boolean, optional)
# key/value example
app:
process: notepad.exe
title: favorites.txt
running: false
EXAMPLE
# saves the current file being edited in notepad
commands:
- examples:
- Save
- Save that
conditions:
- app: notepad.exe
triggers:
- phrase: save [that]
execute:
- sendKeys: '{ctrl-s}'
Status: ✅ IMPLEMENTED