[python-win32] HookMessage failure?

2005-04-06 Thread b6y9eq902
Hey, I'm currently trying to detect all clicks to a particular windows application, using win32gui and win32ui. Right now I'm using EnumWindows() to find the hwnd I want via window title, and then CreateWindowFromHandle(hwnd) to get a PyCWnd object that represents the window. I then attempt t

[python-win32] Click detection in Windows (was 'HookMessage Failure?')

2005-05-07 Thread b6y9eq902
Sorry for lack of reply to this, I've had some other stuff come up. To rehash: I'm basically trying to detect clicks to a particular windows application. I've tried registering a callback via PyCWnd.HookMessage (as in the reply quoted below), but it didn't seem to work at all. Is there any wa

Re: [python-win32] Click detection in Windows (was 'HookMessageFailure?')

2005-05-09 Thread b6y9eq902
Excellent! That's exactly what I was hoping to find. Thanks! -Mark On 5/8/05, Daniel F <[EMAIL PROTECTED]> wrote: > or even better, try using the pyHook module (which wraps > SetWindowHookEx through ctypes for you already, presenting a > convenient python interface). just google "pyhook". > >