Back to Captura

Command-line

docs/Cmdline/README.md

8.0.01.5 KB
Original Source

Command-line

ProjectExecutable
UIcaptura.exe
Command-linecaptura-cli.exe

We use the CommandLineParser NuGet package.

The console projects uses default settings with a few modifications and does not save settings.

Command-line support is not very stable. Please report any bugs you find.

Why a separate Console app?

There are many issues related to using a WPF application as a console app.

  • WPF applications don't block the console. So, we cannot use it for scenarios like wait till capture is completed.
  • Writing to console does not work by default
  • If AttachConsole is used, the written content interferes with console prompt.
  • And more ...

Command-line parameters for UI version

ArgumentDescription
--resetReset all Settings
--trayStarts minimized to System Tray
--no-persistDon't Save any changes in Settings
--no-hotkeyDon't Register Hotkeys.
--settingsCustom settings folder

e.g. Start captura minimized to tray

captura --tray

Implemented Verbs

  • list List available Screens, Windows, Audio Sources, Webcams, etc.
  • start Start a Recording
  • shot Take a ScreenShot
  • ffmpeg
    Allows installation of ffmpeg from command-line.
  • help
    Provides help on using the console app.
  • version
    Prints the version of the console app.