使用C#阻止特定的键盘按键组合 [英] Blocking specific keyboard key combinations using c#

查看:101
本文介绍了使用C#阻止特定的键盘按键组合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Windows应用程序中使用c#阻止某些键盘快捷键. 所有按键组合都将在配置文件中指定.

I need to block certain keyboard shortcuts using c# in windows applications. All the key combinations will be specified in config file.

赞:

Alt + F4
Win + E
Win + L

Alt + F4
Win + E
Win + L

app.config中的配置应该是什么?并请帮助我提供一些示例代码或示例.

What should be the configuration in app.config for this? And please help me with some sample code or examples.

推荐答案

这不是可以通过应用程序的app.config在系统范围内实现的.您将需要使用诸如SteadyState之类的工具.

This is not something that can be accomplished system wide by the app.config of your application. You will need to use a tool such as SteadyState.

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

这篇关于使用C#阻止特定的键盘按键组合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆