开发者

Are there special key events in Windows I can't handle?

开发者 https://www.devze.com 2022-12-29 17:22 出处:网络
Are there any key ev开发者_如何学JAVAents I cannot handle in my C# program? For example, can I implement differently Windows\'s events: Ctrl+Alt+Del, Alt+Tab, WindowsKey+D, etc.Be aware that in any ca

Are there any key ev开发者_如何学JAVAents I cannot handle in my C# program? For example, can I implement differently Windows's events: Ctrl+Alt+Del, Alt+Tab, WindowsKey+D, etc.


Be aware that in any case there is absolutely no way to bypass the automatic handling of a Ctrl+Alt+Del in Windows. So even when you can handle this as an event in your program, the user will still get an additional task manager / login manager.


every keystroke results in a windowsmessage and every key has a keycode (except the special function keys of some keybords like the gamer keyboards used to have).

overwrite wndproc and get those messages to fire your events.

0

精彩评论

暂无评论...
验证码 换一张
取 消