Re: Hooking windowsmessages with python

2008-11-20 Thread Aaron Brady
On Nov 20, 3:52 am, Kevin Osthoff [EMAIL PROTECTED] wrote: Hi! I'm trying to set a message hook with python to catch WM_DROPFILES. The guiframework is Tkinter. Here a code snippet: hwnd = eval(self.wm_frame()) win32gui.DragAcceptFiles(hwnd,1) wnd = win32ui.CreateWindowFromHandle(hwnd)

Re: Hooking windowsmessages with python

2008-11-20 Thread Mike Driscoll
On Nov 20, 3:52 am, Kevin Osthoff [EMAIL PROTECTED] wrote: Hi! I'm trying to set a message hook with python to catch WM_DROPFILES. The guiframework is Tkinter. Here a code snippet: hwnd = eval(self.wm_frame()) win32gui.DragAcceptFiles(hwnd,1) wnd = win32ui.CreateWindowFromHandle(hwnd)

Re: Hooking windowsmessages with python

2008-11-20 Thread Kevin Osthof
Mike Driscoll schrieb: I recommend re-posting to the PyWin32 mailing list where the creators of this package lurk. They'll probably be able to give you some advice: http://mail.python.org/mailman/listinfo/python-win32 Ok. I will try this. Mike --

Re: Hooking windowsmessages with python

2008-11-20 Thread Kevin Osthof
Aaron Brady wrote: I've done some hooks in C. If no one has a simpler way, I can help you build a DLL to do it, and call it from Python. Thx for the offer but i will try to do it in python first. ;) -- http://mail.python.org/mailman/listinfo/python-list