1.2.1 • Published 6 years ago

screensaver-win v1.2.1

Weekly downloads
11
License
ISC
Repository
github
Last release
6 years ago

Screensaver (for nodejs)

Version License

Trigger a callback when user has not interacted with computer for a period of time, then wait for any interaction. Rely on MS Windows GetLastInputTime (through node winapi )

API

var screensaver = require('screensaver-win');

// start a screensaver after 10s on inactity

( function stuff(){

  screensaver(10, function(){
    console.log("Screensaver start");

  }, function() {
    console.log("Screensaver end");

    stuff(); //do it again !
  })

})();

Credits

Keywords / shout box

screensaver, windows api, GetLastInputInfo, activity monitor, inactivity trigger, idle timer

1.2.1

6 years ago

1.2.0

7 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.10.0

8 years ago

0.9.0

8 years ago