我可以分配一个全局热键为Adobe AIR应用程序吗? [英] Can I assign a global hotkey to an Adobe AIR app?

查看:132
本文介绍了我可以分配一个全局热键为Adobe AIR应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能一个全局热键分配给一个特定的功能在Adobe AIR应用程序,即应用程序功能回应热键的应用程序是否处于活动状态(当然这必须在运行,但只在系统托盘)。

Is it possible to assign a global hotkey to a specific feature in an Adobe AIR app, i.e. the app feature responds to the hotkey whether the app is active or not (it must be running of course, but only in the system tray).

推荐答案

我不知道这有可能与Adobe AIR本身。唯一的方法,我能想到的:

I don't this it's possible with Adobe AIR itself. The only method I can think of:

  1. 在安装第三方应用程序的热键(如 AutoHotkey的或的 HotKeyBind
  2. 在配置热键的应用程序,使CTRL + ALT + Q启动 C:\程序\ thvo42 \ coolapp.exe --hotkey q
  3. 在AIR应用程序,报名的 NativeApplication.invoke 活动,并观看像--hotkey Q'要知道,在Q热键是pressed,然后采取相应的行动参数。
  1. Install 3rd party hotkey application (like AutoHotkey or HotKeyBind)
  2. Configure hotkey application to make CTRL+ALT+Q to launch "c:\programs\thvo42\coolapp.exe --hotkey q"
  3. In your AIR application, register for the NativeApplication.invoke event, and watch for arguments like '--hotkey q' to know that the Q hotkey was pressed, and then act accordingly.

当然,这是怎样的一个麻烦,也许有一些黑客,你可以把它卷都变成一个单一的安装文件。

Of course, this is kind of a hassle, maybe with some hacking you can roll it all into a single install file.

这篇关于我可以分配一个全局热键为Adobe AIR应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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