可在Adobe AIR应用程序通过命令行运行输出到控制台?

编程入门 行业动态 更新时间:2024-10-27 03:33:20
本文介绍了可在Adobe AIR应用程序通过命令行运行输出到控制台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个AIR应用程序,它通过onInvoke需要命令行参数。所有这些都是好的,但我无法弄清楚如何打印一些状态信息返回给用户(到stdout /控制台,可以这么说)。这可能吗?

I have an AIR application that takes command-line arguments via onInvoke. All is good, but I cannot figure out how to print some status messages back to the user (to stdout / console, so to speak). Is it possible?

即使痕迹默认日志文件就可以了,但我不能找到它的任何信息的任何地方。我是否需要创建自己的日志文件?现在,会是愚蠢的。

Even a default log file for traces would be fine, but I can't find any info about it anywhere. Do I need to create my own log file? Now that'd be silly.

推荐答案

看看 CommandProxy 。它是在你的AIR应用程序,让您从AS3发送命令给代理与底层操作系统进行通信的低级别的包装。你应该能够增加经由这样的方法写入到命令行的手段。

Take a look at CommandProxy. It is a low level wrapper around your AIR application that lets you send command from AS3 back to the proxy for communicating with the underlying OS. You should be able to add a means of writing to the command line via such a method.

更多推荐

可在Adobe AIR应用程序通过命令行运行输出到控制台?

本文发布于:2023-11-13 21:52:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1585416.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可在   控制台   命令行   应用程序   AIR

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!