diff --git a/capture/win32.js b/capture/win32.js index 99a866f..11da5e2 100755 --- a/capture/win32.js +++ b/capture/win32.js @@ -3,9 +3,14 @@ module.exports = function(options, callback) { var fs = require('fs'); var childProcess = require('child_process'); var path = require('path'); + var nircmd = null; + if (options.allScreens == true) { + nircmd = childProcess.spawn(path.join(__dirname, "bin", "nircmd.exe"), ["savescreenshotfull", options.output]); + } + else { + nircmd = childProcess.spawn(path.join(__dirname, "bin", "nircmd.exe"), ["savescreenshot", options.output]); + } - var nircmd = childProcess.spawn(path.join(__dirname, "bin", "nircmd.exe"), ["savescreenshot", options.output]); - nircmd.on('close', function(code, signal) { try { fs.statSync(options.output); @@ -15,4 +20,4 @@ module.exports = function(options, callback) { callback("file_not_found", null); } }); -}; \ No newline at end of file +};