Solved

Sending messages

Posted on 1997-08-25
1
163 Views
Last Modified: 2010-04-06
how i can send a message to a delphi application that i don't know the handle.?
I have try with sendmessage whith HWND_BROADCAST parameter.
0
Comment
Question by:robertb
1 Comment
 

Accepted Solution

by:
gfk081397 earned 50 total points
ID: 1342454
The simplest way to do it is here:

var
  hWnd : integer;
begin
  hWnd := FindWindow(nil, <title of application window>);
  if  hWnd <> 0 then
    PostMessage(hWnd, WM_CLOSE, 0 , 0);

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

838 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