Solved

How to terminate the application

Posted on 2004-03-22
8
242 Views
Last Modified: 2010-04-05
Dear all

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

Thanx in advance
0
Comment
Question by:ravisiva
8 Comments
 
LVL 14

Expert Comment

by:DragonSlayer
Comment Utility
do checking at the Application.OnIdle?
0
 
LVL 11

Accepted Solution

by:
shaneholmes earned 20 total points
Comment Utility
Application.Terminate

Shane
0
 
LVL 3

Expert Comment

by:cruxy
Comment Utility
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.
0
 
LVL 5

Expert Comment

by:Hypoviax
Comment Utility
Yep, like Shane says:

Application.Terminate
0
 
LVL 5

Expert Comment

by:Hypoviax
Comment Utility
Well the correct answer here is Shane's comment although if you would like to give me some points i would be happy ;-)

Hypoviax
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now