Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread RayS
At 05:02 PM 12/6/2006, Tim Roberts wrote: >Ray Schumacher wrote: > > I've been mulling screen capture code. I tried PIL's > > ImageGrab().grab() (with pymedia) but find PIL's method to be pretty > > slow, ~4grabs per second max with no other processes. > > pymedia is pretty quick once I hand it the

Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread Gabriel Genellina
At Wednesday 6/12/2006 21:32, Ray Schumacher wrote: I've been mulling screen capture code. I tried PIL's ImageGrab().grab() (with pymedia) but find PIL's method to be pretty slow, ~4grabs per second max with no other processes. pymedia is pretty quick once I hand it the data. There has to be an

Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread James Matthews
Can you just call a GUI api that interfaces directly with the graphics card? On 12/6/06, Tim Roberts <[EMAIL PROTECTED]> wrote: Ray Schumacher wrote: > I've been mulling screen capture code. I tried PIL's > ImageGrab().grab() (with pymedia) but find PIL's method to be pretty > slow, ~4grabs per

Re: [python-win32] Compiling a Python Windows application

2006-12-06 Thread James Matthews
PYPY would help because it is said to compile python programs what i would also recommend is prex and pysco On 12/4/06, Tim Roberts <[EMAIL PROTECTED]> wrote: Bob Gailer wrote: >> So maybe try your Python suggestion, if I can get it to work. You showed it >> as Python being started first and t

Re: [python-win32] Question about os.system

2006-12-06 Thread James Matthews
Try Exec with the file handle On 12/6/06, Tim Roberts <[EMAIL PROTECTED]> wrote: Wu, Huaxing (STP) wrote: > > Hi, all, > > I have some problem using os.system when a command that spawned by > os.system itself tries to use os.system. It may be easier to explain > with an example. > > Assume I ha

Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread Tim Roberts
Ray Schumacher wrote: > I've been mulling screen capture code. I tried PIL's > ImageGrab().grab() (with pymedia) but find PIL's method to be pretty > slow, ~4grabs per second max with no other processes. > pymedia is pretty quick once I hand it the data. > How large is your screen? A 1600x12

Re: [python-win32] Question about os.system

2006-12-06 Thread Tim Roberts
Wu, Huaxing (STP) wrote: > > Hi, all, > > I have some problem using os.system when a command that spawned by > os.system itself tries to use os.system. It may be easier to explain > with an example. > > Assume I have 3 python scripts. They are aa.py, bb.py and cc.py. > File aa.py (Try to run bb.py

[python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread Ray Schumacher
I've been mulling screen capture code. I tried PIL's ImageGrab().grab() (with pymedia) but find PIL's method to be pretty slow, ~4grabs per second max with no other processes. pymedia is pretty quick once I hand it the data. There has to be another way to get a copy or buffer() of the screen DC

[python-win32] Question about os.system

2006-12-06 Thread Wu, Huaxing (STP)
Hi, all, I have some problem using os.system when a command that spawned by os.system itself tries to use os.system. It may be easier to explain with an example. Assume I have 3 python scripts. They are aa.py, bb.py and cc.py. File aa.py (Try to run bb.py using os.system) import os print "in", __

Re: [python-win32] Implementing custom com interface, passing it to another com object for callbacks

2006-12-06 Thread johnny loops
Thanks, these references are really helpful, and I think I understand a lot more of the path using comtypes. Continuing with my pseudo code example-- this is what I think I should do: -run GetModule() on the library, which should create the interface foo -Create a class implementing foo -Create

Re: [python-win32] Implementing custom com interface, passing it to another com object for callbacks

2006-12-06 Thread Thomas Heller
johnny loops schrieb: > I have been pining over implementing what seems to be a VB custom com > interface for some time now, so I thought I would post to the list to see if > anyone could help. > > I have a com component on which I have run makepy. The function generates a > couple of classes wit

Re: [python-win32] EasyDialogs - typeList

2006-12-06 Thread Tim Roberts
Axiom X11 wrote: > I am trying to write a dialog the opens a video file. > ... > What I want to do is have it show > > Video Files (*.avi;*.mpg;*.mpeg) > > This idea is hinted at on this page: > http://www.averdevelopment.com/python/EasyDialogs.html > But the example doesn't seem to work (or perhap

[python-win32] Implementing custom com interface, passing it to another com object for callbacks

2006-12-06 Thread johnny loops
I have been pining over implementing what seems to be a VB custom com interface for some time now, so I thought I would post to the list to see if anyone could help. I have a com component on which I have run makepy. The function generates a couple of classes with functions and callbacks that al

[python-win32] EasyDialogs - typeList

2006-12-06 Thread Axiom X11
I am trying to write a dialog the opens a video file. This works: import EasyDialogs file = EasyDialogs.AskFileForOpen(defaultLocation="c:\\", typeList=('avi','mpg','mpeg', )) and outputs a dialog that shows *.avi *.mpg *.mpeg in the selection dropdown. What I want to do is have it show Vid