Re: [python-win32] window events via SetWindowsHookExA

2009-09-18 Thread Tim Roberts
Antoine Martin wrote: > > Yes, I used "dll_handle" without really understanding it... It just > refused to register the hook otherwise, as it is a "global" one. > I'll use another technique I think, but just for my own knowledge: if I > made a DLL with my hook, how would it get loaded into the othe

Re: [python-win32] window events via SetWindowsHookExA

2009-09-18 Thread Antoine Martin
Hi Tim, Tim Roberts wrote: > Antoine Martin wrote: >> I am trying to use SetWindowsHookExA via ctypes to be notified when >> Windows are mapped/unmapped, to get the same functionality as >> SUBSTRUCTURE_MASK events on the root X-window (or is there a better way >> that I have missed?) > > WH_CALL

Re: [python-win32] window events via SetWindowsHookExA

2009-09-17 Thread Tim Roberts
Antoine Martin wrote: > > I am trying to use SetWindowsHookExA via ctypes to be notified when > Windows are mapped/unmapped, to get the same functionality as > SUBSTRUCTURE_MASK events on the root X-window (or is there a better way > that I have missed?) WH_CALLWNDPROC is a bit extreme. The equiv

[python-win32] window events via SetWindowsHookExA

2009-09-17 Thread Antoine Martin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, I am trying to use SetWindowsHookExA via ctypes to be notified when Windows are mapped/unmapped, to get the same functionality as SUBSTRUCTURE_MASK events on the root X-window (or is there a better way that I have missed?) Here is the code: WI