GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - geethut-stack/CleanLock: AutoHotkey v2 GUI to lock your keyboard and mouse independently so you can clean them while the PC stays on.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
CleanLock.ahk
CleanLock.ahk
 
 
CleanLockv2.ahk
CleanLockv2.ahk
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

CleanLock v2

Lock your keyboard and/or mouse while you clean them. Hold F12 for 5 seconds to unlock everything.

Run

  1. Install AutoHotkey v2.
  2. Save CleanLock.ahk as UTF-8 (no BOM is fine, ANSI is not).
  3. Double-click it. The window appears.

Use

  1. Pick Lock KEYBOARD, Lock MOUSE, or Lock BOTH.
  2. Wait out the 3-second pre-delay. Click Cancel Pending to abort.
  3. Clean.
  4. Hold F12 for 5 seconds. A blue bar fills under the status text.
  5. If you forget, the watchdog unlocks everything on its own (default 120s).

Why v1 did not work

Symptom in v1 ↕▾ Cause ↕▾ Fix in v2 ↕▾
−^!m did not unlock the mouse The M key is inside the *vkXX block list. If the keyboard was also locked, ^!m could never fire Removed. One universal escape: hold F12
Triple right-click unlock did nothing Right-click was blocked by the same list, so ~RButton never got clean presses Removed
Ctrl+Alt+Del did not unlock Windows reserves it. No AHK script can block or hook it Documented as impossible. Watchdog is the real fallback
Script crashed on start Arrow functions assigned globals and silently created locals, so the watchdog timer never armed All globals declared explicitly in every function
⚙

Known limits

  • Ctrl+Alt+Del and Win+L cannot be blocked. Windows handles them in secure mode.
  • The physical power button is unaffected.
  • Devices with their own drivers (some gaming mice and touchpads) may pass input through AHK's hook.
  • Elevated windows (Task Manager, UAC) do not receive blocked input from a non-elevated script. Run as admin if that matters.

Customize

Top of CleanLock.ahk:

HOLD_KEY    := "F12"    ; any key name: "Pause", "CapsLock", "F9"
HOLD_SECS   := 5
PRE_SECS    := 3
DEFAULT_WD  := 120

If you change HOLD_KEY, the block list automatically skips its VK, so the hold key keeps working.

Not a security tool

Anyone can press Ctrl+Alt+Del, open Task Manager, and end the script. This is a cleaning convenience tool, not access control.

License

MIT

About

AutoHotkey v2 GUI to lock your keyboard and mouse independently so you can clean them while the PC stays on.

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.