[python-win32] message queue

Radu Ciora raduciora at yahoo.com
Thu Oct 4 23:37:08 CEST 2007


So you mean that I won't be able to see Word's message queue, right?
 
Regards,
Radu.

----- Original Message ----
From: Tim Roberts <timr at probo.com>
To: Python-Win32 List <python-win32 at python.org>
Sent: Thursday, 4 October, 2007 10:06:28 PM
Subject: Re: [python-win32] message queue

Radu Ciora wrote:
> I was trying to see how GetMessage function works.
> I was trying with this basic app and later try to get message for MsWord.
>   

The only messages you get with GetMessage are messages that arrived in
your thread's message queue.  You can monitor the message traffic within
another process, but only by using a window "hook" that actually injects
code into that other process.  The "spyxx" tool that ships with the
PlatformSDK is an excellent way to do this.  Borland has an equivalent
tool called "WinSight".

Window messages are very low-level things.  WM_PAINT tells an
application to repaint part of a window.  WM_MOVE tells it the window is
being moved, WM_SIZE says the window is being resized.  WM_MOUSEMOVE
tells it that the mouse moved within its window.  In addition, controls
like buttons and list boxes report activity to their parent windows,
like when they get clicked, or when an item is selected.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32 at python.org
http://mail.python.orailman/listinfo/python-win32





      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 


More information about the python-win32 mailing list