GithubHelp home page GithubHelp logo

webbeh / lock-screen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from billiegoose/lock-screen

0.0 0.0 0.0 42 KB

An invisible screensaver / lock screen for Windows 7+

License: MIT License

C# 100.00%

lock-screen's Introduction

Transparent Lock Screen for Windows

(also a transparent screensaver)

It's a screensaver with 1% opacity. Unlike most screensavers, it doesn't end on mouse movement. In fact, it blocks mouse clicks and keyboard events until you kill the screensaver with the keyboard shortcut Ctrl + L. Although Ctrl+Alt+Delete isn't blocked, launching the Task Manager is ineffective because the screensaver steals the focus again, so you aren't able to use the Task Manager, just look at it wistfully. The last thing it does before it exits is call LockWorkStation(), so if someone tries to use your computer, even after they unlock the screensaver with Ctrl + L they will be presented with the Windows lockscreen with the Windows password prompt. None of your co-workers will be pranking you now!

The code itself is a derivative of Write a Screensaver that Actually Works, with some of the guts ripped out to simplify it.

Known issues

Windows 10 appears to have issues with transparent screensavers. (Issue #2)

Download

There is a compiled version available.

Current Status

I am not actively working on this project now that I telecommute and have no physically copresent coworkers trying to prank me, but I will gladly accept pull requests.

To Use Manually

Set up a trigger of some sort (say with AutoHotKey) to run "InvisibleLockScreen.scr /s".

To Use As Screen Saver

Copy bin\Release\InvisbleLockScreen.scr to C:\Windows\SysWOW64. In Screen Saver Settings, pick "InvisibleLockScreen" as your screensaver. You can leave "On resume, display logon screen" unchecked.

Similar Software

There are programs out there (e.g. Pro Key Lock, Transparent Screen Lock) that can lock your computer's keyboard/mouse while still showing the running applications, which can be very useful. However they rely on hacky techniques like intercepting Win32 Messages and they charge money. Pro Key Lock, for instance, freaked out when I turned on Sticky Keys for my RSI and I had to forcefully reboot my computer.

After that, I felt there had to be a simpler way to do it that took advantage of Windows native lock screen abilities. So I made this in about 3 hours.

License

MIT

lock-screen's People

Contributors

androsj avatar billiegoose avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.