Solved

Catch ANY windows message...

Posted on 1998-09-01
1
141 Views
Last Modified: 2010-04-04
How can I catch ANY windows message (whit a delphi application of course)??? not just the messages sent to the delphi app., i need it for catch all the active app. in the system!.

For examplem how to catch the message sent from Windows to MS. Word to close his window (WM_QUIT)
0
Comment
Question by:migue77
1 Comment
 
LVL 4

Accepted Solution

by:
BoRiS earned 70 total points
ID: 1338419
migue77

Use the SetWindowsHookEx API call

example
SetWindowsHookEx(WH_CALLWNDPROC, somedll.dll, nil, 0);

this isn't a working example but the hook procedure.....
check the win32 help file for mre details

Later
BoRiS
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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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