📜 ⬆️ ⬇️

WM 5.0+ Hardware Slide To Keyboard Lock / Unlock

I present the program, albeit of rare applicability, but of undoubted usefulness: locking / unlocking the keyboard by the movement of the hardware slider. Accordingly, it will work only where it is, and there is no touch screen (otherwise I would advise S2U2). And such devices still remain, for example Toshiba G500, and maybe some other ones.

The operation algorithm of SlideMonitor is very simple, the program installs the FilpEnable key change handler in the HKEY_CURRENT_USER\ControlPanel\Flip branch (which is updated by the OS to change the position of the slider) and performs the specified actions.

The configuration of SlideMonitor itself is located in the registry (it will be created at the first launch) in the HKEY_CURRENT_USER\Software\sic\SlideActions , by default there is a path to the above key and several other parameters (0 - disabled, 1 - enabled):

Lock - lock the keyboard by closing the slider
UnLock - unlock by opening
HangUp - hang up on closing
EndData - interrupt data connections on closing
')
By default, only Lock / Unlock is set.

Accordingly, the source code (compiled for VS 2008, SmartDevices, WM 5.0 SDK) and the binary and necessary libraries (in theory should be present in the system).

Source: https://habr.com/ru/post/89517/


All Articles