Skip to content

Capture window or monitor using 'Windows Graphics Capture' from the command line.

License

Notifications You must be signed in to change notification settings

EX-EXE/WindowsScreenCapture

Repository files navigation

WindowsScreenCapture

Capture window or monitor using 'Windows Graphics Capture' from the command line.

Sample

Arguments

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:

Example

WindowsScreenCapture.exe /ProcessName: Taskmgr.exe /Output: ./output.png
WindowsScreenCapture.exe /Monitor: 0 /Output: ./output.png

Packages

About

Capture window or monitor using 'Windows Graphics Capture' from the command line.

Topics

Resources

License

Stars

Watchers

Forks

Languages