apache-flex 如何在Actionscript 3中使用命令行选项来使用BoxCutter进行截图?

w80xi6nr  于 2022-11-01  发布在  Apache
关注(0)|答案(2)|浏览(108)

我一直在寻找一种方法,通过使用buxcutter.exe的命令行选项来截图,但我不知道什么是参数来传递截图。我主要是想从不同的监视器截图。
我正在使用以下代码启动进程:

var cmdScreenCaputeLocation:File = File.applicationDirectory.resolvePath("assets\\boxcutter.exe");
var nativeProcessStartInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartInfo.executable = cmdScreenCaputeLocation;
var nativeProcess:NativeProcess = new NativeProcess();
nativeProcess.addEventListener(NativeProcessExitEvent.EXIT,screenCaptureNativeProcessComplated);
nativeProcess.addEventListener(ProgressEvent.STANDARD_ERROR_DATA,screenCapturOonErrorS);
nativeProcess.addEventListener(IOErrorEvent.STANDARD_INPUT_IO_ERROR,screenCaptureOnError);
nativeProcess.start(nativeProcessStartInfo);

如果有人知道什么是参数,我必须通过,以便我可以采取截图从不同的显示器,请帮助我解决这个问题?

qkf9rpyu

qkf9rpyu1#

直接从boxcutter主页http://keepnote.org/boxcutter/

usage: boxcutter [OPTIONS] [OUTPUT_FILENAME]

Saves a screenshot to 'OUTPUT_FILENAME' if given.  Only output formats
"*.bmp" and "*.png" are supported.  If no file name is given,
screenshot is stored on clipboard by default.

OPTIONS
  -c, --coords X1,Y1,X2,Y2    capture the rectange (X1,Y1)-(X2,Y2)
  -f, --fullscreen            fullscreen screenshot
  -v, --version               display version information
  -h, --help                  display help message
nmpmafwu

nmpmafwu2#

Usage : boxcutter [OPTIONS] [OUTPUT_FILENAME]

OPTIONS  
-c, = coords X1,Y1,X2,Y2 capture the rectangle (X1,Y1)-(X2,Y2).  
-f, = to capture the full screen screenshot.  
-v, = to display version information.  
-h, = to display help message.  

For Full Screen : boxcutter -f testgrab.png
By Coordinate : boxcutter -c X1,Y1,X2,Y2 testgrab.png

(其中X1 =起始X坐标,X2 =终止X坐标,Y1 =起始Y坐标,Y2 =终止Y坐标)

相关问题