winapi
Advanced tools
Comparing version 2.9.15 to 2.10.0
{ | ||
"name": "winapi", | ||
"version": "2.9.15", | ||
"version": "2.10.0", | ||
"description": "Misc windows API wrappers", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git@git.ivsdev.net:3rd/node-winapi.git" | ||
"url": "git+ssh://git@github.com/131/node-winapi.git" | ||
}, | ||
@@ -46,5 +46,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://git.ivsdev.net/3rd/node-winapi/issues" | ||
"url": "https://github.com/131/node-winapi/issues" | ||
}, | ||
"homepage": "https://git.ivsdev.net/3rd/node-winapi#readme", | ||
"homepage": "https://github.com/131/node-winapi#readme", | ||
"readme": "# winapi\r\nMisc natives wrappers for nodejs\r\n\r\n## require('winapi').getIdleTime()\r\nReturn the time the system has been idle (since last user interaction - e.g. mouse, keyboard & stuffs, see GetLastInputInfo)\r\nThis is really usefull if you want to create a screensaver/like in nodejs / node-webkit.\r\n\r\n```\r\nvar winapi = require('winapi');\r\n\r\nconsole.log(\"System is idle since %s\", winapi.getIdleTime() );\r\n\r\n```\r\n\r\n\r\n\r\n## require('winapi').GetLastInputInfo()\r\nUse this native binding to get system last input time ([see MSDN](https://msdn.microsoft.com/en-us/library/windows/desktop/ms646302%28v=vs.85%29.aspx) )\r\n\r\n```\r\nvar winapi = require('winapi');\r\n\r\nconsole.log(\"Last input time is %s\", winapi.GetLastInputInfo() );\r\n\r\nsetTimeout(function(){\r\n //do not move, it wont change !\r\n console.log(\"Last input time is %s\", winapi.GetLastInputInfo() );\r\n}, 1000);\r\n\r\n```\r\n\r\n\r\n## require('winapi').GetTickCount()\r\nRetrieves the number of milliseconds that have elapsed since the system was started (uptime). ([see MSDN](https://msdn.microsoft.com/en-us/library/windows/desktop/ms724408%28v=vs.85%29.aspx) )\r\n\r\n\r\n# Credits\r\n* [131](mailto:131.js@cloudyks.org)\r\n\r\n\r\n# Keywords / shout box\r\nscreensaver, windows api, winuser.h, GetLastInputInfo, activity monitor, inactivity trigger, idle timer, system uptime, sytem bootime\r\n\r\n\r\n", | ||
@@ -51,0 +51,0 @@ "readmeFilename": "README.md", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
0