如何使用 BoxCutter 在 Actionscript 3 中使用命令行选项截取屏幕截图?
How to use BoxCutter to take screenshot by using command line options in Actionscript 3?
我一直在寻找一种使用 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);
如果有人知道我必须传递哪些参数以便我可以从不同的显示器截屏,请帮助我解决这个问题?
直接来自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
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 坐标)
我一直在寻找一种使用 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);
如果有人知道我必须传递哪些参数以便我可以从不同的显示器截屏,请帮助我解决这个问题?
直接来自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
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 坐标)