1.0.0 • Published 5 years ago
@supertiger/active-window-listener v1.0.0
Active Window Listener
Listen to active windows by specifying them
This will be used in Nertivia in the future to show playing status and more!
Usage
const ActiveWindowListener = require("active-window-listener");
const listener = new ActiveWindowListener(["Discord.exe", "Telegram.exe", "Code.exe"]);
listener.changed(data => {
console.log("Active: ", data)
})
This should output an object:
{
"title": "#Epic - Discord",
"pid": 1234,
}
Package used
This package was mainly used to get all the active window information. https://github.com/sentialx/node-window-manager/
1.0.0
5 years ago