Re: [python-win32] Dispatches With Events on COM Object

2006-08-03 Thread Neil Benn
Mark Hammond wrote: The problem will be that the object itself doesn't supply the typeinfo necessary to associate the object with the makepy generated class. It should however be possible for you to manually extract a suitable object though. What you need is something like: from win32com.clie

[python-win32] win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0) - What are the last two Parameters?

2006-08-03 Thread Gregory Piñero
Hi Guys, I've been looking everywhere to find this out. Would someone please fill me in? BTW how can I locate this kind of information for myself in the future? I can't even find this function in the source code for some reason. Much Thanks! -- Gregory Piñero Chief Innovation Officer Blended

Re: [python-win32] win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0) - What are the last two Parameters?

2006-08-03 Thread Simon Brunning
On 8/3/06, Gregory Piñero <[EMAIL PROTECTED]> wrote: > I've been looking everywhere to find this out. Would someone please > fill me in? > > BTW how can I locate this kind of information for myself in the > future? I can't even find this function in the source code for some > reason. Much of the

Re: [python-win32] win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0) - What are the last two Parameters?

2006-08-03 Thread Gregory Piñero
On 8/3/06, Simon Brunning <[EMAIL PROTECTED]> wrote: > Much of the win32 stuff fairly thinly wraps the Windows API, so MSDN > is often a good place to look. For example: > . Thanks Simon that worked! FYI, future readers the answer is that those two parameters are message

Re: [python-win32] Dispatches With Events on COM Object

2006-08-03 Thread Mark Hammond
> print dir(mod) > ob = mod.Application Try adding parens after that line - currently 'ob' is the class, where you want an instance of the class. ob = mod.Application() That may get closer. Mark ___ Python-win32 mailing list [email protected] h

[python-win32] sleep() for less than .001s?

2006-08-03 Thread Ray Schumacher
I have been trying to use sleep() and kernel32.QueryPerformanceCounter together; I want to delay until a particular tick without trying up the CPU badly. However, while time.sleep(.001) relieves the CPU, it has wildly unpredictable delay, and sleep(.0001) delays almost nothing at all! (I'm watch