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
If the application is ideal Ā for some time
i want to shut down the application automatically?
Thanx in advance
do checking at the Application.OnIdle?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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
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
Hypoviax