Skip to Content
SnapKit
Reference

Command-line options

snapkit.exe accepts a few options. They're useful for shortcuts, scripts and testing.

snapkit.exe accepts a few options. They're useful for shortcuts, scripts and testing.

OptionWhat it does
(none)Opens the SnapKit window.
--minimizedStarts hidden in the system tray. Start with Windows uses this option.
--selectOpens straight into a region capture.
--test-capture <file.png>Captures the monitor under the pointer, including the pointer, saves it to <file.png> and exits without opening a window. The exit code is 0 on success and 1 on error.

Only one SnapKit runs at a time. Starting snapkit.exe again while it's running brings up the window of the copy already running; with --select, it starts a region capture there instead; with --minimized, it does nothing. Copies with different preferences folders (%APPDATA%) count as different.

Examples

Start a region capture from a desktop shortcut or a launcher:

& "$env:LOCALAPPDATA\Programs\SnapKit\snapkit.exe" --select

Check that screen capture works on a machine, for example after a driver update:

& "$env:LOCALAPPDATA\Programs\SnapKit\snapkit.exe" --test-capture "$env:TEMP\snapkit-test.png"

Environment variables

VariableEffect
SNAPKIT_DEBUG_VISIBLEWhen set, SnapKit's own windows aren't excluded from screen captures. Used to photograph the capture overlay while developing.
CIWhen set, tests that need the real screen, OCR engines or FFmpeg are skipped. Only affects cargo test.

On this page