Solved

Catch ANY windows message...

Posted on 1998-09-01
1
138 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now