lock-screen/README.md

39 lines
2.2 KiB
Markdown
Raw Normal View History

2015-09-18 15:58:34 +12:00
# Transparent Lock Screen for Windows
2015-09-18 16:19:18 +12:00
(also a transparent screensaver)
2015-09-18 15:58:34 +12:00
2017-08-17 14:10:00 +12:00
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.
2015-09-18 15:58:34 +12:00
None of your co-workers will be pranking you now!
2017-08-17 14:10:00 +12:00
The code itself is a derivative of [Write a Screensaver that Actually Works](http://www.codeproject.com/Articles/14081/Write-a-Screensaver-that-Actually-Works),
with some of the guts ripped out to simplify it.
2015-09-18 15:58:34 +12:00
2017-01-07 06:04:17 +13:00
## Download
There is a [compiled version available](https://github.com/wmhilton/lock-screen/releases).
2015-09-18 15:58:34 +12:00
## Current Status
2017-08-17 14:10:00 +12:00
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.
2015-09-18 15:58:34 +12:00
2015-09-18 16:19:18 +12:00
## To Use Manually
Set up a trigger of some sort (say with AutoHotKey) to run "InvisibleLockScreen.scr /s".
## To Use As Screen Saver
2015-09-18 16:13:43 +12:00
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.
2015-09-18 15:58:34 +12:00
## 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.