Solved

How to terminate the application

Posted on 2004-03-22
8
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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