Solved

How to terminate the application

Posted on 2004-03-22
8
244 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
ID: 10648184
do checking at the Application.OnIdle?
0
 
LVL 11

Accepted Solution

by:
shaneholmes earned 20 total points
ID: 10648338
Application.Terminate

Shane
0
 
LVL 3

Expert Comment

by:cruxy
ID: 10648453
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
ID: 10661954
Yep, like Shane says:

Application.Terminate
0
 
LVL 5

Expert Comment

by:Hypoviax
ID: 13189980
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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