node截屏

https://www.npmjs.com/package/desktop-screenshot

var screenshot = require('desktop-screenshot');

screenshot("screenshot.png", function(error, complete) {
    if(error)
        console.log("Screenshot failed", error);
    else
        console.log("Screenshot succeeded");
});

你可能感兴趣的:(node截屏)