开发者

Determine programmatically if an AIR app was launched from the command line?

Is it possible to determine programmatically whether an AIR开发者_运维技巧 app was launched from the command line or via double-click on the application icon?

I want to be able to do something like:

`if (e.launchedFromCLI) { foo(); }`


Try listening to NativeApplication INVOKE event, it is the only place I know where you can find such info.

Seems that you can not distinguish CMD launch from icon launch - unless you pass some arguments in CMD.

http://help.adobe.com/en_US/AIR/1.5/jslr/flash/desktop/NativeApplication.html#event:invoke

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜