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.
| Option | What it does |
|---|---|
| (none) | Opens the SnapKit window. |
--minimized | Starts hidden in the system tray. Start with Windows uses this option. |
--select | Opens 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" --selectCheck 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
| Variable | Effect |
|---|---|
SNAPKIT_DEBUG_VISIBLE | When set, SnapKit's own windows aren't excluded from screen captures. Used to photograph the capture overlay while developing. |
CI | When set, tests that need the real screen, OCR engines or FFmpeg are skipped. Only affects cargo test. |
Related
Files and folders
SnapKit keeps everything on your computer, in ordinary files and folders you can open, back up or delete.
System requirements and limits
The installed size breaks down as follows: FFmpeg about 110 MB, Tesseract about 28 MB, the neural OCR models about 13 MB, ONNX Runtime about 17 MB, and the program itself.