Skip to content

TinyMan/window-screenshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

window-screenshot

Node.Js package using .NET and Edge.js to take screenshot of a given window

Installation

npm install --save window-screenshot

Why this module

I was starting a project and didn't find any module to take a screenshot of a given window only + keep in in memory (no file written to disk).

Example

Take a screenshot of the current foreground window and write to a file:

let fs = require('fs')
let screenshot = require('../')

screenshot(0, // 0 is for active window
   function (err, res) {
       if(err) throw err;

       fs.writeFile("result.png", res);
   });

Todo

  • Take title/class name of the window and lookup the handle

About

Node.Js package using .NET and Edge.js to take screenshot of a given window

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published