From ee47832cd666f09821f2c9c4b863a0bfc1d01b48 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 4 Jun 2025 12:56:00 +0100 Subject: [PATCH] add ScreenshotCmd to README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 67113ee..4ecc121 100644 --- a/README.md +++ b/README.md @@ -572,6 +572,25 @@ gobs-cli projector open --monitor-index=1 "test_scene" gobs-cli projector open --monitor-index=1 "test_group" ``` +### ScreenshotCmd + +- save: Take a screenshot and save it to a file. + - flags: + + *optional* + - --width: + - defaults to 1920 + - --height: + - defaults to 1080 + - --quality: + - defaults to -1 + + - args: + +```console +gobs-cli screenshot save --width=2560 --height=1440 "Scene" "C:\Users\me\Videos\screenshot.png" +``` + [userconfigdir]: https://pkg.go.dev/os#UserConfigDir [obs-keyids]: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h \ No newline at end of file