Solved

How can I force an application to close

Posted on 1998-02-09
1
174 Views
Last Modified: 2011-04-14
I am working on some kind of kiosk program which gives access to MS Office.  When the time runs out, I want to close all applications. How can I kill an app no matter what ? Even if there are dialog boxes, etc... I tried WM_Destroy but it generates DR Watson errors.
0
Comment
Question by:ymailhot
1 Comment
 
LVL 5

Accepted Solution

by:
ronit051397 earned 50 total points
ID: 1358814
Close a notepad document:

SendMessage(FindWindow('notepad', nil), wm_Destroy, 0, 0);
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…

809 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