Need help with active-window?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

octalmage
141 Stars 51 Forks 9 Commits 21 Opened issues

Description

Get active window title in Node.js.

Services available

!
?

Need anything else?

Contributors list

# 16,119
Compose...
C
Objecti...
genetic...
5 commits
# 404,069
JavaScr...
Shell
PHP
3 commits
# 72,339
Shell
CSS
svg
html5-c...
1 commit

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('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 @number of requests; infinity = -1 @interval between requests */ //monitor.getActiveWindow(callback,-1,1);

//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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.