How jatinkrumkar/asusfnlock works
AsusFnlock is a Windows tray application that provides a software Fn-lock toggle for ASUS laptops without a hardware Fn-lock key. Its main workflow is to load the saved state, register keyboard hotkeys, and toggle the lock through a global shortcut or tray menu; it also persists changes and displays an on-screen indicator. The single sampled source file contains these responsibilities, so they are represented as distinct stages within that implementation. The excerpts do not show the complete hotkey dispatch or OSD trigger paths.
Main entry points: Program.cs Fn-lock app
Components 10
Fn-lock runtime
- Fn-lock app
Program.cs - Hotkey handling
Program.cs - Tray controls
Program.cs - Status OSD
Program.cs
Windows integration
- Saved lock state
Program.cs - ACPI control
Program.cs - Brightness controls
Program.cs - Startup task
Program.cs
Other components
- Laptop user
- Windows services
Connections 13
- Fn-lock app → Saved lock state: loads and saves
Program.cs - Fn-lock app → Hotkey handling: registers hotkeys
Program.cs - Laptop user → Hotkey handling: presses shortcut
- Laptop user → Tray controls: uses menu
Program.cs - Tray controls → Fn-lock app: toggles lock
Program.cs - Fn-lock app → Status OSD: shows status
Program.cs - Fn-lock app → ACPI control: sets device state
Program.cs - Fn-lock app → Brightness controls: adjusts brightness
Program.cs - Tray controls → Startup task: toggles startup
Program.cs - Hotkey handling → Windows services: registers keys
Program.cs - ACPI control → Windows services: calls ACPI
Program.cs - Brightness controls → Windows services: uses WMI
Program.cs - Startup task → Windows services: runs schtasks
Program.cs