获取正在运行的进程列表,获取活动进程(及其应用程序)Flex/AIR [英] Get list of running processes, get active process (and it's application) Flex/AIR

查看:28
本文介绍了获取正在运行的进程列表,获取活动进程(及其应用程序)Flex/AIR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是一个快速(或者可能不是:]):

just a quickie (or maybe not:] ):

是否可以以某种方式获取正在运行的应用程序/进程的列表,并在后台运行时检查哪个进程处于活动状态?

Is it possible to get somehow list of running applications/processes and, while running in background, check which process is active?

此外 - 如果不知何故,答案是肯定的,是否可以对活动窗口/应用程序的更改做出反应,就像它是事件一样,或者绑定到它的自定义事件(例如 Event.SystemActiveAppChange)?

Additionally - if somehow, the answer was yes, is it possible to react for change of active window / application react just as if it was Event, or bind to it custom event (e.g. Event.SystemActiveAppChange)?

感谢您的回答和指点.

编辑:由于可能存在误解,我的意思是本地应用程序 - 在您的 win/mac/linux 机器上 - 我想(在学习语言的过程中)跟踪我最常使用的应用程序,也许可以制作一个小图表?

EDIT: Due to probable missunderstanding, I mean local applications - on your win/mac/linux machine - I would like to (in process of learning of language) track what apps I use the most, make a little graph maybe?

所以,重点是:在 FLEX 开发的 AIR 应用程序中,我想获取/列出所有正在运行的应用程序/进程,以及哪个是活动的(在用户的 PC/Mac/Linux 上)

So, the point is: in AIR app, developed in FLEX, I would like to get/list all running applications/processes, as well as which one is active (on user's PC/Mac/Linux)

推荐答案

不幸的是,这是不可能的,因为 AIR 既无法访问流程信息,也无法访问系统性能指标.

Unfortunately this isn't possible, since AIR can access neither process information nor system performance metrics.

您唯一的希望是在 .NET 或 Objective C 中创建另一个服务(例如,不是跨平台 - 假设这是一项要求),该服务可以通过本地 NetConnection<向您的 AIR 应用程序提供流程信息/代码>.我对 Java 不太确定,但您可能可以使用 Mono.

Your only hope would be to create another service in .NET or Objective C (as in, not cross platform - assuming that is a requirement) that can provide the process information to your AIR app via a local NetConnection. I'm not sure about Java, but you might be able to get away with Mono.

这篇关于获取正在运行的进程列表,获取活动进程(及其应用程序)Flex/AIR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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