Hook keyboard shortcuts from Windows lock screen

家住魔仙堡 提交于 2019-12-12 00:59:01

问题


I have an arduino in keyboard emulation mode that sends keyboard keystrokes to the computer it's connected to, the latter appending a log line in a local webpage upon receiving each keystroke. The log program is coded in C using Win32 API.

Now, since it's supposed to function at work (the idea is to get a log file online of when pushbuttons on my desk have been activated), I will be locking my computer...

How can I keep processing CTRL+ALT+key strokes from the windows lock screen?

Thanks, Mister Mystère


回答1:


This seems to work: https://www.codeproject.com/Articles/19004/A-Simple-C-Global-Low-Level-Keyboard-Hook

When you run the compiled executable, the keys A and B are detected globally even when the screen is locked.




回答2:


I ended up downloading a third party lock screen and my program works in its background as it is a standard program. For those of you in the same situation, as far as I know after all that research I'm afraid you'll have to do that instead: it seems like it is not possible starting from Vista.



来源:https://stackoverflow.com/questions/21797347/hook-keyboard-shortcuts-from-windows-lock-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!