简体   繁体   English

使用C#阻止特定的键盘按键组合

[英]Blocking specific keyboard key combinations using c#

I need to block certain keyboard shortcuts using c# in windows applications. 我需要在Windows应用程序中使用c#阻止某些键盘快捷键。 All the key combinations will be specified in config file. 所有按键组合将在配置文件中指定。

Like : 喜欢 :

Alt + F4 Alt + F4
Win + E + E
Win + L + L

What should be the configuration in app.config for this? app.config的配置应该是什么? And please help me with some sample code or examples. 并请帮助我提供一些示例代码或示例。

This is not something that can be accomplished system wide by the app.config of your application. 这不是可以通过应用程序的app.config在系统范围内实现的。 You will need to use a tool such as SteadyState. 您将需要使用诸如SteadyState之类的工具。

http://en.wikipedia.org/wiki/Windows_SteadyState http://en.wikipedia.org/wiki/Windows_SteadyState

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM