I'm writing a script to automate my analysis. I can save an image of the graphics section of the window, but I want to take a screenshot of the whole Workbench window. Can I do this?


Not directly using the Workbnech API, but some applications (e.g., IrfanView) supports taking screenshots from the command-line. Then, you can call it using JScript.


var strIrfanPath = "C:Program FilesIrfanViewi_view32.exe";
var strFilename = "C:screenshotsshot1.png";
var strIrfanOpts = " /capture=1 /convert=";
var captureCommand = strIrfanPath + strIrfanOpts + strFilename;

var shell = new ActiveXObject("WScript.Shell");
shell.Exec(captureCommand);





Show Form
No comments yet. Be the first to add a comment!