How to remove individual messages in Delphi App

Hi,   XP, D7

I have an application which sends messages to fire a particular procedure using postmessage.
These messages are generated by a timer, keypress or interrupt from hardware.

I need a way to monitor messages and remove a message already sent.
Any ideas?

Thanks
chrislockAsked:
Who is Participating?
 
Geert GOracle dbaCommented:
you can use peekmessage to find if messages exist in a message system

sample:
https://forums.embarcadero.com/thread.jspa?threadID=17598
0
 
ThommyCommented:
WinSpector / Tool for display system messages...

Winspector 1.0b Build 37
http://www.softpedia.com/get/Security/Security-Related/Winspector.shtml
0
 
ThommyCommented:
Ok, I think you are not looking for a tool. You want to do it in your own app...

For messages sent to your Delphi app you can write your own message handler.

TApplication has a method HookMainWindow which you can use to capture messages before your application processes them.

Here you can find examples...
http://www.delphipages.com/forum/showthread.php?t=182431
0
 
Geert GOracle dbaCommented:
Thommy ... you missed my comment ... you don't need to capture
you can peek :)
0
 
chrislockAuthor Commented:
Thanks
I've split the points.
One of you led me to the component below:

http://www.torry.net/vcl/system/windows/mi.zip
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.