[python-win32] message queue
Tim Roberts
timr at probo.com
Fri Oct 5 00:01:08 CEST 2007
Radu Ciora wrote:
> So you mean that I won't be able to see Word's message queue, right?
>
Not by using GetMessage, no. You wouldn't want to in any case, because
GetMessage *removes* the messages from the queue. If you COULD get
them, then Word WOULDN'T get them, and the display would be screwed up.
It IS possible to monitor the message queue for another application by
creating a Windows hook, using SetWindowsHookEx. The WH_CALLWNDPROC or
WH_GETMESSAGE hooks might do what you want. This can't be done from
Python, because this actually does inject the code directly into other
processes.
What are you trying to accomplish? There isn't really very much of
interest in a window message queue.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list