capture-window
Capture a desktop window to a png file. Simple and easy.
Last updated 5 years ago by linusu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install capture-window 
SYNC missed versions from official npm registry.

capture-window

Capture a desktop window to a png file. Simple and easy.

Installation

npm install --save capture-window

Usage

var captureWindow = require('capture-window');

captureWindow('Finder', 'Downloads', function (err, filePath) {
  if (err) { throw err; }

  // filePath is the path to a png file
});

API

captureWindow(bundle, title[, filePath], cb)

Captures the window with the title title of type bundle. bundle is usually the name of the application, e.g. Finder, Safari, Terminal.

The callback receives (err, filePath).

OS Support

Only Mac OS X at the time being. The source is well prepared for other systems, pull requests welcome.

License

MIT

Current Tags

  • 0.1.3                                ...           latest (5 years ago)

4 Versions

  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 7
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |