The CLI supports quick single-key automation and config file loading. More advanced automation options live in configuration.md.
pks [OPTIONS]
-c, --config <FILE>: load a JSON config file.-p, --process <PROCESS>: target process name.-k, --key <KEY>: key to send.-i, --interval <DURATION>: interval between sends. Default:1000ms.--max-retries <COUNT>: process lookup attempts. Default:10.--save-config <FILE>: save the current CLI arguments as a config file and exit.-v, --verbose: enable verbose output.-h, --help: print help.-V, --version: print version.
Run a single key:
pks --process notepad.exe --key spaceRun with a custom interval:
pks --process game.exe --key r --interval 1500msLoad a config file:
pks --config examples/configs/advanced-config.jsonSave a config file from CLI arguments:
pks --process notepad.exe --key space --save-config my-config.json- CLI mode creates a single repeating key sequence.
- Sequence playback, repeat counts, independent timers,
pause_hotkey, andrestore_focusare configured through JSON files.