Link to home
Start Free TrialLog in
Avatar of ravisiva
ravisiva

asked on

How to terminate the application

Dear all

If the application is ideal Ā for some time
i want to shut down the application automatically?

Thanx in advance
Avatar of DragonSlayer
DragonSlayer
Flag of Malaysia image

do checking at the Application.OnIdle?
ASKER CERTIFIED SOLUTION
Avatar of shaneholmes
shaneholmes

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cruxy
cruxy

Use a timer with, say 30 sec's. Retrigger it on each Application.OnIdle Event (nothing has been done since then) - but only if no timer message arrived - Call Application.terminate after the timer raised 5 times...

An other solution would be to trap all mouse/keyboard messages with an Application.OnMessage Handler and retrigger a timeout with that.
Yep, like Shane says:

Application.Terminate
Well the correct answer here is Shane's comment although if you would like to give me some points i would be happy ;-)

Hypoviax