0.7.0 • Published 3 years ago

simple-active-window v0.7.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

active-window

Get active window title in Node.js.

Compatible with Linux, Windows 7+, and OSX;

Usage

var monitor = require('simple-active-window');

callback = function(window){
  try {
    console.log("App: " + window.app);
    console.log("Title: " + window.title);
  }catch(err) {
      console.log(err);
  } 
}
/*Watch the active window 
  @callback
  @number of requests; infinity = -1 
  @interval between requests
*/
//monitor.getActiveWindow(callback,-1,1);

//Get the current active window
monitor.getActiveWindow(callback);

Tested on

  • Windows
  • Windows 10
  • Windows 7
  • Linux
  • OSX
    • Yosemite 10.10.1

TODO

  • Test on more operating systems.
  • Use native APIs.

License

MIT

0.3.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago