cross-platform-active-window
Get active window title in Node.js.
(fork of https://github.com/octalmage/active-window, which looks to be unmaintained)
Compatible with Linux, Windows 7+, and OSX;
Usage
var monitor = require('active-window');
callback = function(window){
try {
console.log("App: " + window.app);
console.log("Title: " + window.title);
}catch(err) {
console.log(err);
}
}
monitor.getActiveWindow(callback);
Tested on
- Windows
- Windows 10
- Windows 7
- Linux
- Raspbian [lxdm]
- Debian 8 [cinnamon]
- OSX
TODO
- Test on more operating systems.
- Use native APIs.
License
MIT