Adobe AIR的键盘钩子 [英] Adobe AIR Keyboard Hook

查看:149
本文介绍了Adobe AIR的键盘钩子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个功能添加到我的AIR应用程序,可以监听,即使当应用程序最小化(配置)全球键盘事件。例:CTRL-ALT-SHIFT-F12抢截图

I'm trying to add a feature to my AIR app that can listen for (configurable) global keyboard events even when the app is minimized. Ex: CTRL-ALT-SHIFT-F12 to grab a screenshot.

我找不到任何方法来注册一个键盘钩子,并监听键盘事件只能捕获他们,当应用程序具有焦点。建议?

I can't find any way to register a keyboard hook, and listening for keyboard events only captures them when the app has focus. Suggestions?

推荐答案

我不认为Adobe AIR的程序可以处理关键preSS事件,除非应用程序是关注的焦点。

I don't think that Adobe Air programs can process keypress events unless the application is in focus.

http://forums.adobe.com/thread/420446

甚至<一href="http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=304"相对=nofollow>这对于关键presses全球处理器问题指出,应用程序必须是关注的焦点。

Even this question regarding a Global handler for keypresses states that the application must be in focus.

这篇关于Adobe AIR的键盘钩子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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