Skip to content

Commit

Permalink
[Win] Add idle time tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Yves Hoppe committed Jan 3, 2020
1 parent ef05789 commit 242c213
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
},
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.17763.0",
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "msvc-x64"
}
],
"version": 4
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Active Window

Node C++ N-API module to get information on the currently selected window on Linux, MacOS and Windows.
Node C++ N-API module to get information on the currently selected window and the user idle time on Linux, MacOS and Windows.

> Currently only supports Windows and Linux / Xorg.
Expand Down Expand Up @@ -38,5 +38,7 @@ See `sample.js` for more information.
windowType: '340',
// Process ID of the window
windowPid: '34218',
// Idle Time in seconds
idleTime: '42',
}
```
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "active-windows",
"version": "0.1.8",
"version": "0.1.9",
"author": "Yves Hoppe <[email protected]> (https://bytee.net)",
"homepage": "https://bytee.net",
"repository": {
Expand Down

0 comments on commit 242c213

Please sign in to comment.