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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I capture windows popup messages

Status
Not open for further replies.

sabelo

Programmer
Apr 7, 2003
9
NZ
How can I capture the messages from a windows (messenger) popup...either to a text file or just a variable it doesn't matter...or is at all possible?

Also, is it possible to block messages from a specific station in the intranet.

By the way...I'm using windows2000 and we have no server in our intranet.
 
If you want to capture the messages sent to and from an MSN/Windows Messenger window, then it can be done, someone already built it into the Messenger Plus extensions. No idea how, but it can be done.
 
I'm asking about Delphi...not MSN. You know when you use say the "send" command, the recipient recieves a popup window and what I want to capture is the message in that window. Thanks.
 
"You know when you use say the "send" command, the recipient recieves a popup window and what I want to capture is the message in that window"

Unless the popup window is in your application, you are asking about MSN. You can use the Windows API to get the handle of that popup and then find the sub-windows (e.g. an edit, memo, or label) and get the text from that sub-window.

Cheers
 
Thanx, but my main question is how do you get that message i.e. how do I get the handle from the popup using API. If at least you can give me the Windows API function to do it, I'd be more than happy.

Cheers
 
WinSight can help you identify the class and caption of the window.

The FindWindow call will get you the handle. The use EnumChildWindows to find the control on the dialog and GetWindowText to get the displayed text.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top