2016-08-19 26 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 
相關問題