Capture window or monitor using 'Windows Graphics Capture' from the command line.
Argument | Description | Example |
---|---|---|
/Output: | Specify the destination for saving captured data. | /Output: "C://OutputDir/Output.png" |
/Format: | Specifies the image format.(Default: png)[png/bmp/dds] | /Format: png |
/ProcessId: | This is the Process ID (PID) of the target for capture. | /ProcessId: 10000 |
/ProcessName: | This is the Process Name of the target for capture. | /ProcessName: Taskmgr.exe |
/Monitor: | This is the Monitor Index of the target for capture. | /Monitor: 0 |
/CaptureCursor: | This specifies whether to include the mouse cursor in the capture. (Default: Disable) | /CaptureCursor: Enable |
/TimeoutSec: | This specifies the timeout duration for capturing (in seconds) | /TimeoutSec: 10.0 |
/Licence: | Displays the license of the library being used. | /Licence: |
WindowsScreenCapture.exe /ProcessName: Taskmgr.exe /Output: ./output.png
WindowsScreenCapture.exe /Monitor: 0 /Output: ./output.png