获取 AIR 中程序运行实例的尺寸
我想在 AIR 中完成 2 个任务:
- 确定定义的程序是否正在运行(例如 firefox.exe)
- 如果它正在运行,则获取其窗口的当前尺寸 - 我想制作窗口的屏幕截图,所以我我猜还需要其他参数:它是否最小化?它在其他窗户后面吗?
这可以在 AIR 中完成吗?我使用的是最新版本(2.6)
I would like to accomplish 2 tasks in AIR:
- Determine, whether a defined program is running (for example firefox.exe)
- If its running, then get the current dimensions of its window - i want to make a screenshot of the window, so i'd need other parameters too i guess: Is it minimized? is it behind some other window?
Is this possible to accomplish in AIR? Im using the latest version (2.6)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,不可能开箱即用。您需要做的是用 C# 或 C++ 等语言编写本机应用程序,然后使用 NativeProcess API 与该应用程序进行交互。这是一个视频教程,内容与您想做的事情很接近,应该可以让您顺利进行。
http://gotoandlearn.com/play.php?id=125
http://gotoandlearn.com/play.php?id=126
No it's not possible out of the box. What you're going to need to do is write a native application in something like C# or C++ and then interface with that application using the NativeProcess API. Here is a video tutorial to something close to what you want to do, and should have you well under way.
http://gotoandlearn.com/play.php?id=125
http://gotoandlearn.com/play.php?id=126