active-window
Get active window title in Node.js.
Compatible with Linux, Windows 7+, and OSX;
Usage
var monitor = ; { try console; console; catcherr console; }/*Watch the active window @callback @number of requests; infinity = -1 @interval between requests*///monitor.getActiveWindow(callback,-1,1); //Get the current active windowmonitor;
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