Automatically exiting omnis
Dave Jobling
omnisstuff at tynedalecomputers.com
Mon Dec 1 04:49:36 EST 2014
Thanks Marco. I'll give it a try.
Dave
-----Original Message-----
From: omnisdev-en-bounces at lists.omnis-dev.com [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of omnis
Sent: 29 November 2014 10:28
To: omnisdev-en at lists.omnis-dev.com
Subject: Re: Automatically exiting omnis
Il 29/11/2014 10:19, Dave Jobling ha scritto:
> Hi
>
> Some of my users are leaving my application open for days at time. Does anybody have a good way of getting omnis studio 4.3 to automatically quit at a certain time in the evening? .
>
> I suppose it could be done with a timer method. If so, has anybody got any sample code?
>
> Thanks
>
> Dave Jobling.
>
> ________________________________
>
> No virus found in this message.
> Checked by AVG - www.avg.com<http://www.avg.com>
> Version: 2012.0.2249 / Virus Database: 4189/8149 - Release Date:
> 11/29/14 _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>
Hi,
I usually use this method:
1. Create a object class called *O_CLOSE_TIMER* 2. in superclass property insert *.Timer Library.Time**r* 3. in a main menu, create a instance object variable called *iv_timer* 4. In the $construct method of the main menu, insert this code
Do $clib.$objects.*O_CLOSE_TIMER*.$new() Returns iv_timer Do iv_timer.$autoreset.$assign(kTrue)
Do iv_timer.$reentrant.$assign(kFalse)
Do iv_timer.$useseconds.$assign(kTrue)
Do iv_timer.$timervalue.$assign(_*time in seconds*_) Do iv_timer.$stoptimer() Do iv_timer.$starttimer()
In O_CLOSE_TIMER create a method called *$time**r*. In this method called from timer, control the time with #d
--
*Marco Vitrano*
/Omni Logic/
| Mobile: 3285784774
http://www.omnilogic.it
Facebook <https://www.facebook.com/pages/Omni-Logic/137257006328380>
Twitter <https://twitter.com/Marco_Vitrano> LinkedIn
<http://www.linkedin.com/pub/marco-vitrano/25/6b5/477>
Contact me: Skype omnis.revenge
AVVERTENZE AI SENSI DEL DLGS 196/2003: le informazioni contenute in
questo messaggio di posta elettronica e/o nel/i file/s allegato/i, sono
da considerarsi strettamente riservate. Il loro utilizzo è consentito
esclusivamente al destinatario del messaggio, per le finalità indicate
nel messaggio stesso. Qualora riceveste questo messaggio senza esserne
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail
all'indirizzo info at omnilogic.it e di procedere alla distruzione del
messaggio stesso, cancellandolo dal Vostro sistema; costituisce
comportamento contrario ai principi dettati dal Dlgs. 196/2003 il
trattenere il messaggio stesso, divulgarlo anche in parte, distribuirlo
ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse.
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2249 / Virus Database: 4189/8149 - Release Date: 11/29/14
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2249 / Virus Database: 4189/8161 - Release Date: 12/01/14
More information about the omnisdev-en
mailing list