是否有可能使一个AIR应用程序在启动时运行? [英] Is it possible to make an AIR app run on startup?

查看:127
本文介绍了是否有可能使一个AIR应用程序在启动时运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使我的AIR应用程序能够将自身添加到启动程序列表? (我想使这项工作在多个平台上 - 即在Windows,Mac和Linux)?我怎么会去这样做。

解决方案

 如果(NativeApplication.supportsStartAtLogin)
{
    NativeApplication.nativeApplication.startAtLogin = TRUE;
}
 

当用户登录时这会启动应用程序,而不是OS启动,但它是你可以得到最亲密的事情。

Is it possible to make my AIR app able to add itself to the list of startup programs? (I'd like to make this work on multiple platforms - namely, Windows, Mac and Linux) How would I go about doing so?

解决方案

if (NativeApplication.supportsStartAtLogin)
{
    NativeApplication.nativeApplication.startAtLogin = true;
}

This will start application when user logs in, not OS starts, but it's closest thing you can get.

这篇关于是否有可能使一个AIR应用程序在启动时运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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