1.1.3 • Published 3 years ago

active-window-listener v1.1.3

Weekly downloads
45
License
ISC
Repository
github
Last release
3 years ago

Active Window Listener

Listen to active windows by specifying them

This will be used in https://nertivia.tk (My chat web app project) in the future to show playing status and more!

Usage

const { ProcessListen } = require("active-window-listener");

const listener = new ProcessListen(["Discord.exe", "Telegram.exe", "Code.exe"]);

listener.changed(data => {
    console.log("Active: ", data)
})

This should output an object of Window Class properties. See the package used below to view the methods.

There is also a function to get windows that are opened. I needed to filter out some of the components from the "Windows" Directory in order to get the proper list.

const { getWindows } = require("active-window-listener");

console.log(getWindows())

This should output an array of Window Class properties. See the package used below to view the methods.

Package used

Mainly used to get all the active window information. https://github.com/sentialx/node-window-manager/ Used to get File Description (Which is used to get the proper program name) https://www.npmjs.com/package/exiftool-vendored

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago