Flex Air 在未对焦时接收输入
我试图找出当应用程序未聚焦时如何继续接收应用程序的键盘输入。例如,如果我将应用程序停靠到系统托盘,是否有办法继续接收键盘输入以馈送到应用程序?
先感谢您.. -J
I am trying to find out how to continue to receive keyboard input to my app when the app is not focused. For example, if I dock my app to the system tray, is there a way to continue to receive keyboard input to be fed to the app?
Thank you in advance..
-J
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信这是不可能的,因为 Air 仍然在运行时运行,它只能获得焦点上的键盘输入(根据操作系统的限制)。然而,您可以做的是让您的应用程序附带一个本机操作系统实用程序(用 C# 或 Java 或其他语言编写),您的 Air 应用程序可以使用
NativeProcess
与该实用程序进行通信并获取所需的数据。I believe this is not possible since Air still runs in a runtime which can only get keyboard input on focus (as per the OS' limitation). What you can do however is have your application ship with a native OS utility (made in C# or Java or whatever) that your Air app can communicate with and get data it needs by using
NativeProcess
.