Hello Tim,

Thanks for your answer. 
Yes, this is exactly what I want to acomplish.
Application i'm working on is going to be called from that menu. Plan is to 
attach it automatically to some apps through running service or some process. 
I red a lot about hooking WinApi but I don't realy know C that much. Writing a 
simple DLL sounds really easy.
How do you mean subclassing a window  and overtwritting windowproc can be done 
in python ?

Regards,
CgBartek 
> Are you talking about attaching to a menu in another application?  That 
> requires hooking.  You actually have to inject a DLL of your own into 
> the code space of the owning process, then override that window's 
> windowproc so that you can intercept its window messages.
> 
> I would arrogantly assert that this is not possible in Python, although 
> I'm sure one of the gurus will be happy to contradict me.  If it were 
> me, I would write a small DLL in C to do the hooking and subclass the 
> window, then come up with some kind of communication scheme back to my 
> Python application.
> 
> If I have misunderstood your request, then please excuse me.  What are 
> you planning to do in this menu handler?
> 
> -- 
> Tim Roberts, [EMAIL PROTECTED]
> Providenza & Boekelheide, Inc.
> 
> _______________________________________________
> python-win32 mailing list
> python-win32@python.org
> http://mail.python.org/mailman/listinfo/python-win32

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to