Re: [python-win32] win32gui, win32ui -- how to release references?

2005-03-22 Thread Niki Spahiev
Tim Roberts wrote: On Sun, 20 Mar 2005 23:56:33 -0500, Marcus Goldfish [EMAIL PROTECTED] wrote: As an addendum to my previous post: I was able to successfully do screen capturing using win32gui + win32ui, [though I am still looking for a solution that works without win32ui]. Why? win32ui is

RE: [python-win32] win32com.Dispatch() vswin32com.client.gencache.EnsureDispatch() vswin32com.client.DispatchWithEvents()

2005-03-22 Thread Mark Hammond
What I would like to know is- is DispatchWithEvents() like the unreliable Dispatch(), or is it more like using EnsureDispatch() + event handling ? DispatchWithEvents is more like EnsureDispatch - it requires the makepy early-binding. Does anyone have some example sof using

Re: [python-win32] Python crash after win32com.client.CastTo?

2005-03-22 Thread Nathan Edwards
Unfortunately, _InvokeTypes_ is the main entry point for *all* COM calls with type information. As part of this call, Python packs all Python args into VARIANTs, then makes the actual call to the COM object. Hmmm. I was afraid of that. Thus, I see 2 possibilities: * pythoncom has a bug in

RE: [python-win32] win32com.Dispatch() vswin32com.client.gencache.EnsureDispatch() vswin32com.client.DispatchWithEvents()

2005-03-22 Thread Tony Cappellini
help(win32com.client.DispatchWithEvents) should print an IE example. At 12:56 AM 03/22/05, Mark Hammond wrote: I did see the example, but didn't know which form of Dispatch it works like. I've read Chapter 12 , several times- but this stuff doesn't COM easy to me. What I would like to know is-

[python-win32] Python crash after win32com.client.CastTo?

2005-03-22 Thread Tim Roberts
On Mon, 21 Mar 2005 09:46:26 -0500, Nathan Edwards [EMAIL PROTECTED] wrote: I'm going out of my mind here, trying to figure out if a) I'm screwing up, b) Python's COM extensions are screwing up, or c) the Type Library I'm using is screwing up. ... Call theWF2.GetScanDescription2(1, 0, 382, 1,

[python-win32] Using win32com to access uPNP

2005-03-22 Thread Gavin Hotpop
I saw this on the internet am having a similar problem - I think. I'm not a technical person, but have worked out that the script I am running errors -"Object Required" when it reaches the first line that uses mappingports. Did you manage to fix this - if so please help! I have tried

[python-win32] win32gui.EnumChildWindows() crashes when no children exists

2005-03-22 Thread Michael Smietana
When the method win32gui.EnumChildWindows(hwnd, callback, extra) does find the window for which to return children but the window doesn't have any children it crashes with the error: pywintypes.error: (0, 'EnumChildWindows', 'No error message is available'). Shouldn't it just return a empty

[python-win32] win32gui, win32ui -- how to release references?

2005-03-22 Thread Marcus Goldfish
As an addendum to my previous post: I was able to successfully do screen capturing using win32gui + win32ui, [though I am still looking for a solution that works without win32ui]. The code goes something like: l, t, r, b = win32gui.GetWindowRect(hwnd) h, w = b-t, r-l hDC = win32gui.GetDC(hwnd)

[python-win32] win32gui and BitBlt()?

2005-03-22 Thread Marcus Goldfish
I've been working on a screen capture utility for python, but came across a snag using win32gui: I can't find BitBlt()? Does this module contain such a function? I was able to find BitBlt() as a method of PyCDC in module win32ui, but I was trying to avoid MFC. Can someone post a snippet of using

[python-win32] Re: Python-win32 Digest, Vol 24, Issue 18

2005-03-22 Thread Tony C
Message: 8 Date: Mon, 21 Mar 2005 17:58:50 +0100 From: magic joe [EMAIL PROTECTED] Subject: [python-win32] screenshot of a window? To: python-win32@python.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original Make the window you