I'm currently developing an application that uses private Windows messages to trigger (some) code execution (for programmers: defined as WM_USER + n).

I would like to track the order in which some of these are processed by the OS and handled in my app. I can not find sufficient facilities in my IDE to do so.

A free tool would be nice.

FWIW I Develop in Delphi XE2

  • Your requirement is pretty specific. I'm not sure you'll find such a tool. However, writing a windows hook to peek messages should not be that difficult or time consuming.
    – rrirower
    Commented Apr 28, 2015 at 12:20

2 Answers 2


Visual Studio ships with a program call spyxx.exe that does what you need I think. You point it at your application and it shows you what messages it receives. You can filter to just specific messages or ranges if you like. It probably ships with the community editions of VS.

  • Thanks. The executable name is spyxx.exe, but MS calls it Spy++
    – user416
    Commented May 1, 2015 at 17:27

I found out later, through posting at StackExchange that it is possible from within my program.

This solves my immediate problem, but I'm leaving the question (and this answer) up for others.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.