Six slots. Each slot pairs a key with an application. Hold the modifier, press the key: the app's window comes forward if it is running, otherwise the app is launched.
Setup
- Pick the modifier in Settings. The default is Ctrl+Alt; slot keys default to F1 through F6.
- In each slot tab, set the key and the application.
- Windows: the executable name, for example
notepad.exeorcode.exe. If the executable is not on your PATH, use the full path. Arguments are optional and split on spaces. - macOS: the application name as it appears in Finder, for example
Safari. Arguments are not used.
- Windows: the executable name, for example
- Restart the script after changing a key.
Behavior
- Windows: a visible window whose process matches the executable name is focused. The window is restored if minimized, and a maximized window stays maximized. If the operating system refuses to change focus, or the launch fails, the reason is logged and shown as a notice.
- macOS: activation goes through the system's own launch or focus path for the named application. A missing application is reported the same way.
Limits
- Slot keys are captured system wide while the script runs.
- Matching is by process name only. Two apps that share an executable name resolve to whichever window the system lists first.
