【问题标题】:How to use BoxCutter to take screenshot by using command line options in Actionscript 3?如何使用 BoxCutter 在 Actionscript 3 中使用命令行选项截取屏幕截图?
【发布时间】:2016-08-19 13:42:44
【问题描述】:

我正在寻找一种通过使用 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);

如果有人知道我必须传递什么参数以便我可以从不同的显示器截屏,请帮我解决这个问题?

【问题讨论】:

    标签: actionscript-3 apache-flex flex4 multiple-monitors


    【解决方案1】:

    直接来自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
    

    【讨论】:

      【解决方案2】:
      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 坐标)

      【讨论】:

        猜你喜欢
        • 2012-10-20
        • 2013-04-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-12-23
        • 1970-01-01
        • 1970-01-01
        • 2011-08-14
        相关资源
        最近更新 更多