Flex的

编程入门 行业动态 更新时间:2024-10-17 21:21:03
本文介绍了Flex的 - 运行AIR应用程序在后台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想为我的用户可以选择自动有我的应用程序的启动,每周完成一个任务,在一定的时间。

I am trying to provide my users with the option to have my application launch automatically and complete a task at a certain time every week.

我可以使用NativeApplication.nativeApplication.startAtLogin =真我的应用程序启动的日志,但后来我想,如果检测的时间是他们所选择的时间,如果没有的话在后台运行的应用程序,直到时间不匹配或者用户关闭其计算机。

I can make my application launch at log in using NativeApplication.nativeApplication.startAtLogin=true but I then want to detect if the time is the time they selected and if it isn't then run the application in the background until the time does match or the user shuts down their computer.

有谁知道的一种方式做到这一点?在Adobe的网页上比较灵活网络应用和桌面应用它意味着,我认为应用程序可以在后台运行,但我在努力寻找什么。

Does anyone know of a way to do this? On Adobe's webpage comparing Flex web apps and desktop apps it implied to me that applications could be run in the background but I'm struggling to find anything.

推荐答案

您可以关闭的初始本机窗口,而不杀死进程

You can close the initial native window without killing the process

NativeApplication.nativeApplication.autoExit = false; NativeWindow(this.stage.nativeWindow).close();

您可以关闭初始本机窗口,创建一个新的窗口,作为一个桌面小部件没有出现在任务栏与无论是实用程序或轻量级的窗口类型。

You can close the initial native window and create a new window that acts as a desktop widget without appearing in the taskbar with either the UTILITY or LIGHTWEIGHT window type.

help.adobe/en_US/air/reference/html/flash/display/NativeWindowInitOptions.html#type

更多推荐

Flex的

本文发布于:2023-11-23 16:07:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622074.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Flex

发布评论

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

>www.elefans.com

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