2.10.1 • Published 6 months ago

winapi v2.10.1

Weekly downloads
7
License
ISC
Repository
github
Last release
6 months ago

winapi

Misc natives wrappers for nodejs

require('winapi').getIdleTime()

Return the time the system has been idle (since last user interaction - e.g. mouse, keyboard & stuffs, see GetLastInputInfo) This is really usefull if you want to create a screensaver/like in nodejs / node-webkit.

var winapi = require('winapi');

console.log("System is idle since %s", winapi.getIdleTime() );

require('winapi').GetLastInputInfo()

Use this native binding to get system last input time (see MSDN )

var winapi = require('winapi');

console.log("Last input time is %s", winapi.GetLastInputInfo() );

setTimeout(function(){
  //do not move, it wont change !
  console.log("Last input time is %s", winapi.GetLastInputInfo() );
}, 1000);

require('winapi').GetTickCount()

Retrieves the number of milliseconds that have elapsed since the system was started (uptime). (see MSDN )

Credits

Keywords / shout box

screensaver, windows api, winuser.h, GetLastInputInfo, activity monitor, inactivity trigger, idle timer, system uptime, sytem bootime

2.10.1

6 months ago

2.10.0

1 year ago

2.9.12

1 year ago

2.9.13

1 year ago

2.9.11

1 year ago

2.9.15

1 year ago

2.9.8

2 years ago

2.9.6

2 years ago

2.9.2

2 years ago

2.9.4

2 years ago

2.9.3

2 years ago

2.9.1

2 years ago

2.8.1

3 years ago

2.8.0

4 years ago

2.7.6

4 years ago

2.7.5

4 years ago

2.7.3

6 years ago

2.7.2

6 years ago

2.7.1

6 years ago

2.7.0

6 years ago

2.6.0

6 years ago

2.5.4

6 years ago

2.5.3

6 years ago

2.5.2

6 years ago

2.5.1

7 years ago

2.5.0

7 years ago

2.4.0

7 years ago

2.3.0

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.10.0

8 years ago

0.9.0

8 years ago