https://github.com/aldaviva/lock-your-windows
🔐 Activate the Windows lock screen (Win+L), or check if Windows is currently locked.
https://github.com/aldaviva/lock-your-windows
lock lockscreen win32 windows
Last synced: 11 months ago
JSON representation
🔐 Activate the Windows lock screen (Win+L), or check if Windows is currently locked.
- Host: GitHub
- URL: https://github.com/aldaviva/lock-your-windows
- Owner: Aldaviva
- License: apache-2.0
- Created: 2017-01-28T10:20:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-22T08:21:17.000Z (about 3 years ago)
- Last Synced: 2025-05-07T10:34:09.700Z (11 months ago)
- Topics: lock, lockscreen, win32, windows
- Language: C++
- Homepage:
- Size: 285 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.txt
Awesome Lists containing this project
README
lock-your-windows
============
Activate the Windows lock screen (Win+L), or check if Windows is currently locked.
## Requirements
- [Node.js and NPM](https://nodejs.org/en/)
- [node-gyp](https://www.npmjs.com/package/node-gyp)
- [Visual Studio](https://www.visualstudio.com/downloads/) (tested on 2015 Community Edition)
- [Windows 8.1 SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-8-1-sdk)
## Installation
```bash
npm install --save lock-your-windows
```
## Usage
```javascript
var lockYourWindows = require('lock-your-windows');
var isLocked = lockYourWindows.isLocked();
console.log("Windows is currently "+(isLocked ? "locked" : "unlocked"));
console.log("Locking Windows...");
lockYourWindows.lock();
```
## Developing
### Recompile the native C++ addon
```bash
node-gyp rebuild
```
### Run tests
```bash
npm test
```