什么是在Windows中添加全局键盘快捷方式最简单的方法? [英] What is the easiest way to add global keyboard shortcuts in Windows?

查看:211
本文介绍了什么是在Windows中添加全局键盘快捷方式最简单的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的应用程序,以检测它不运行时,键盘快捷键,但似乎没有工具来做到这一点在Windows合理的回退将有一个后台进程没有侦听关键任何UI presses。是否可以监控关键presses当一个应用程序是不是在.NET中的前景?

I would like for my app to detect keyboard shortcuts when it isn't running, but as there doesn't appear facility to do this in Windows a reasonable fallback would be to have a background process without any UI that listens for keypresses. Is it possible to monitor keypresses when an app isn't in the foreground in .Net?

看起来这 $ C $的CProject文章,有什么我所需要的。

Looks like this CodeProject article has what I need.

推荐答案

这库是pretty的也很好

This library is pretty good too

编辑:最近,我创造了这个库,它采用了不同的方法: NHotkey

I recently created this library, which uses a different approach: NHotkey

这篇关于什么是在Windows中添加全局键盘快捷方式最简单的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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