在Windows中注册键盘快捷键 [英] Registering Keyboard shortcuts with windows

查看:114
本文介绍了在Windows中注册键盘快捷键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

感谢您阅读我的问题

我只想开发一个可以处理ClipBoard的非常简单的窗口应用程序.对于流程的自定义,我只希望在某些按键上说(ctrl + Shift + 1),完成此按键后,我的应用程序将执行一些操作.如果我的应用程序在后台运行,是否在其他任何应用程序上调用按键.

还有任何事件可以让我知道ClipBoard中包含的数据何时更改.

请为我提供指导.我将如何实现?

Hello All,

Thanks for reading my question

I just want to develop a very simple window application which would deal with ClipBoard. for the customization of the process, i just want that on certain key presses let''s say (ctrl+Shift+1), when this keypress is done,my application performs some operation. whether the keypress is called at any other application providing my application is running in background.

also is there any event that could let me know when the data contained in ClipBoard is changed.

kindly provide me the guidliees. how would i achieve this ?

推荐答案

您可能需要的方法称为挂钩",在本例中为挂钩键盘".

键盘挂钩 [
The methodology that you probably require is called ''Hooking'' and in this case ''Hooking the Keyboard''.

The KeyBoard Hooks[^] article from here on Code Project should get you started but if not just Bingle for ''Keyboard Hook''.

Good luck! :)


这篇关于在Windows中注册键盘快捷键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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