Re: [python-win32] dispatch and minimize the window?

2008-11-20 Thread Tim Roberts
Pahud wrote: > > I am trying to use win32com.client.Dispatch() to run my program but I > would like to minimize it in the system tray. What can I do? Your message could mean several things. Are you saying that you have written a COM server, and when someone starts your COM server using Dispatch,

[python-win32] Hook windows messages with python

2008-11-20 Thread Christoph Buck
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) > wnd.HookMessage(self.test,w32con.WM_DROPFILES) > def tes