Skip to content

Screen Lock based on Electron-react-boilerplate, Screen Lock、keyboard shortcuts Lock、application auto power on

License

Notifications You must be signed in to change notification settings

Mad-hu/ScreenLock

Repository files navigation


Screen Lock based on Electron-react-boilerplate, uses Electron, React, React Router, Webpack and React Fast Refresh.


Abstract

Screen Lock based on Electron-react-boilerplate, Screen Lock、keyboard shortcuts Lock、application auto power on

  • Screen Lock
  • keyboard shortcuts Lock
    • Alt + Tab
    • Alt + F4
    • Ctrl + Alt + delete
    • ....
  • application auto power on
Important functions MacOS Windows
Screen Lock
keyboard shortcuts Lock
auto power on

Install

First, clone the repo via git and install dependencies:

git clone https://github.com/Mad-hu/ScreenLock.git
cd ScreenLock
yarn

File Structure

  • .erb: project config
  • assets: app icons
  • screenlock-node: keyboard shortcuts Lock cpp project
  • src: base application

Starting Development

Start the app in the dev environment:

yarn start

Packaging for Production

To package apps for the local platform:

yarn package

Auto power on !importent

electron builder config. package.json

"win": {
      "requestedExecutionLevel": "highestAvailable", // is require
      "target": [
        {
          "target": "nsis"
        }
      ]
    }

if you want auto power on and keyboard shortcuts Lock (Ctrl + Alt + delete) is working, next change the windows computer UAC. regedit.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000000
"EnableLUA"=dword:00000000
"EnableUIADesktopToggle"=dword:00000000
"PromptOnSecureDesktop"=dword:00000000
"ValidateAdminCodeSignatures"=dword:00000000
"FilterAdministratorToken"=dword:00000000

Maintainers

Reference Documentation

License

MIT ©