Re: Auto Close application


Avgerinos
 

One more suggestion to add :

Since Magic clears the event-queue and disables event-handling when a "Stop" instruction of "Box" type is executed, you need to replace all these alert-boxes with calls to a custom Show-Message program.  
This program may also have some countdown mechanism, to allow for the user to react before automatically aborting and exiting.

Regards
Avgerinos


On 18/10/2020 11:23 μ.μ., Keith Canniff wrote:

Oh and to add to Sherm’s suggestion:

 

You could also add to the expression a time of day if you wanted to get people out of the system only after let’s say 5pm.

 

Keith

 

From: main@magicu-l.groups.io <main@magicu-l.groups.io> On Behalf Of sherman levine
Sent: Sunday, October 18, 2020 4:19 PM
To: main@magicu-l.groups.io
Subject: Re: [magicu-l] Auto Close application

 

Only thing to add - if you run long reports without user intervention, then perhaps add  Level(1)='RM' to your idle time expression.

Sherm

 

 

On 10/18/2020 8:25 AM, Keith Canniff wrote:

This one is very easy and have done it quite often for people that leave their application up and go home, which can mess up backups.

In Application Events add an event handler that is based on Elapsed (let's say every 5 minutes) and have it call a new program “Exit System on Idle”

In the new program, Batch Task, set End Task to Yes, Don’t open a window, no options, etc.

In Task Suffix add an Evaluate operation that does “Exit System’ACT with a condition Idle() > however much time you want before it exits with no activity.

Idle looks for keyboard inactivity and resets when someone touches a key.

Now every 5 minutes the application event will run this new program and if the idle time is greater than whatever you set it to, Exit System action will take place, closing your application.

HTH

Keith


From: main@magicu-l.groups.io <main@magicu-l.groups.io> on behalf of Mulyadi Jet via groups.io <mulyadi.7705@...>
Sent: Saturday, October 17, 2020 2:22:57 AM
To: Magic Users Group <main@magicu-l.groups.io>
Subject: [magicu-l] Auto Close application

 

Dear all,

 

I have an application on magic 8.3.

Can I make that application automatically close when there is no user interaction within several minute ?

Thanks for advice

 

Have a great weekend

 

Virus-free. www.avast.com

 


Join main@magicu-l.groups.io to automatically receive all group messages.