Message: 8
Date: Mon, 21 Mar 2005 17:58:50 +0100
From: "magic joe" <[EMAIL PROTECTED]>
Subject: [python-win32] screenshot of a window?
To:
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=original
Make the window you are looking for
> 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
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 usi
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.GetD
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 l
Thats a nice coincidence I'm also looking for screenshot but then only for a
certain window.
Still need to know how to find a certain window and then get its
coordinates.
J.
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org
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 Mi
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,
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-
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 Invok
> 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
> win32com.clie
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 ju
12 matches
Mail list logo