Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stopping an application

Status
Not open for further replies.

chunkyman

IS-IT--Management
Aug 10, 2007
10
MT
Hi,
I need to stop a running application from my Delphi application.
Tried the post message method of WM_QUIT but this app will throw up an "are you sure you want to quit this program" message when I do.
I tried WM_DESTROY which actually crashed it :)
Is there a nicer way of doing this please?

Thanks
 
well the WM_QUIT is actually a good start.
all you need to do now is do findwindow on the dialog and simulate a 'ok' click...

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top