不集中形式的C#/WPF热键(如启动) [英] C#/WPF hotkey on a not focused form (like launchy)

查看:88
本文介绍了不集中形式的C#/WPF热键(如启动)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能从非集中形式捕获热键(例如 Ctrl + Space ),以使其在有人使用此特定热键时出现;并且无需在注册表上注册此热键. 可以在应用程序"Launchy"中注意到类似的事件.

Is it possible to catch a hotkey (eg. Ctrl+Space) from a not focused form, to make it appear whenever someone uses this specific hotkey ; And without having to register this hotkey on the registry. A similar event can be noticed in the application "Launchy".

谢谢

语言:C#(WPF)// 操作系统:Windows

Language : C# (WPF) // OS : Windows

推荐答案

您需要致电此处是WPF包装器.

You need to call the RegisterHotKey API function.
Here is a WPF wrapper.

这篇关于不集中形式的C#/WPF热键(如启动)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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