Solved

How to remove individual messages in Delphi App

Posted on 2011-02-25
5
343 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:chrislock
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 250 total points
ID: 34979547
you can use peekmessage to find if messages exist in a message system

sample:
https://forums.embarcadero.com/thread.jspa?threadID=17598
0
 
LVL 19

Expert Comment

by:Thommy
ID: 34979635
WinSpector / Tool for display system messages...

Winspector 1.0b Build 37
http://www.softpedia.com/get/Security/Security-Related/Winspector.shtml
0
 
LVL 19

Assisted Solution

by:Thommy
Thommy earned 250 total points
ID: 34979747
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
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 34979816
Thommy ... you missed my comment ... you don't need to capture
you can peek :)
0
 

Author Closing Comment

by:chrislock
ID: 34981408
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

739 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