2016-08-19 24 views
0

我正在寻找一种通过使用buxcutter.exe的命令行选项来截屏的方式,但我不知道通过什么参数来截取截图。我主要想从不同的显示器截图。如何使用BoxCutter通过使用Actionscript 3中的命令行选项截屏?

我使用下列代码启动过程:

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); 

如果有人知道什么是我要传递这样我可以从不同的显示器采取截图的参数,请帮我解决这个问题?

回答

0
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坐标)

1
从博克卡特主页 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 
相关问题