The working computer is an all-in-one. All USB ports are behind the screen. It is extremely inconvenient to plug and unplug the USB disk. So I searched for USB widgets to see if I could extend the USB interface to the front of the screen through widgets.
A bit of searching to find a favored little item -ELEKS MAKER Geek Desktop Controller
As you can see in the picture above, the small object has a punk style with a modern feel. With three USB 2.0 ports, it is enough for daily work. There are also three small buttons and a large knob. The large knob can be rotated or used as a button.
According to the instructions, the rotation of the large knob controls the volume of the system, and the button on the large knob toggles whether the system is muted or not.
It is also possible to customize the functions of the large knob buttons through the control program.
So, here's an idea.Customize the buttons on the large knob to lock the screen.. When I leave my workstation, I press the big knob and it locks the work computer.
So, open the control program as follows
It can be seen that the control program has separate control over theThree buttons.cap (a poem)A big knob.Functions that have been set for the functions of the
stillFor the action "press button" only the multimedia key can be specified! For the "Press Button" action, only multimedia keys can be assigned, i.e., one of several assigned multimedia keys can be selected. It is not possible to select other shortcuts. For example, the shortcut for locking the screen is Win+L, but this cannot be set.
So, did some searching online. Found two useful articles
Some programs to modify the corresponding functions of the keyboard keys under Windows.
How to create a one-click lock screen program as a desktop shortcut on Win10 64-bit PC?
The first article, explains, how to modifymultimedia keyequivalent function
As shown below, through the registry, theCalculator Multimedia Keysfunction to point to Notepad ()
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18]
"ShellExecute"=""
where the ShellExecute field points to other programs.
It is also possible to use the Association field to point to an extension and call the program corresponding to that extension.
Example:
"Association"="mailto" to invoke the default mail program.
"Association"=".doc", that call the default doc of the program, usually Word
The second article, explains, how to set the lock screen, through shortcuts
Under Shortcuts, the shortcuts are passed through the
,LockWorkStation
Calling the system's frequency lock program
So, in a flash of inspiration, the two articles above were combined into one
1. Change the multimedia shortcut for the press button to "Calculator".
2. Write the registry to change the counterpart of the calculator multimedia key to point to the lock screen.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18]
"ShellExecute"=" ,LockWorkStation"
After importing the registry into the system
At this point, press the large button on the small object and the computer immediately locks up!