Skip to content

harikanani/active-window

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attention, this library is not maintained anymore!!!

active-window

Get active window title in Node.js.

Compatible with Linux, Windows 7+, and OSX;

Usage

var monitor = require("my-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
*/
//monitor.getActiveWindow(callback);

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

Tested on

  • Windows
  • Windows 10
  • Windows 7
  • Linux
    • Raspbian [lxdm]
    • Debian 8 [cinnamon]
  • OSX
    • Yosemite 10.10.1

TODO

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

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.5%
  • PowerShell 14.2%
  • AppleScript 10.5%
  • Shell 4.8%