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

2006-12-07 Thread johnny loops
Thomas, thanks for your help. Everything seemed to work except when I needed to pass my com object to another com function to receive callbacks > > o=myComObjClass() > > otherDispatchedComObject.FunctionThatNeedsInterface(o, otherInputs) The other dispatched com object was created using win32com

[python-win32] Re: Obtaining LSA functions via Python 1.5.2

2006-12-07 Thread Roger Upole
Todd Dolinsky wrote: > Hi everyone - > > I'd like to write a script that can return a list of users/groups that > have a given privilege. After researching a bit I found the > win32security.Lsa* functions from the newest Python 2.* releases to be > exactly what I'm looking for. The problem is th

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

2006-12-07 Thread Roger Upole
Ray Schumacher wrote: > Upon further tries, I can get handles, DCs, and/or Win32 BMPs from > the desktop, but I can't get to a DIB from there. > > Can someone outline the general process that might be required? > Ie., > get window handle > create in/out DCs > select bmp to outDC > blit inDC data

Re: [python-win32] How to take a snapshot of a specific control?

2006-12-07 Thread RayS
Check this post: http://mail.python.org/pipermail/python-win32/2003-June/001129.html win32gui.EnumWindows(_MyCallback, windows) for i in windows: if win32gui.IsWindowVisible(i): if win32gui.IsWindowVisible: windowsText.append(i)

[python-win32] How to take a snapshot of a specific control?

2006-12-07 Thread Michiel Vleugel
Hello list, I'm trying to come up with a script that will take a screenshot of internet exploder, (for IE automated unittest script for web development) but having trouble drilling fown to the dc of the control. It looks like I the control that is needed is called "Internet Explorer_Server" in

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

2006-12-07 Thread Ray Schumacher
Upon further tries, I can get handles, DCs, and/or Win32 BMPs from the desktop, but I can't get to a DIB from there. Can someone outline the general process that might be required? Ie., get window handle create in/out DCs select bmp to outDC blit inDC data I tried emulating a nice IronPython exa

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

2006-12-07 Thread Tim Roberts
Wu, Huaxing (STP) wrote: > Thanks for trying out and fix the typo (Outlook loves to capitalize > the first letter) > > My environment is Windows 2000, and I was running from Eclipse. > To follow your example, I tried to run them from command prompt, and I got > C:\temp\x>aa.py > in C:\temp\x\aa.p

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

2006-12-07 Thread Tim Roberts
James Matthews wrote: > PYPY would help because it is said to compile python programs what i > would also recommend is prex and pysco Your suggestions are all about deployment and optimization. They don't particularly address the OP's problem. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boek

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

2006-12-07 Thread Tim Roberts
James Matthews wrote: > Can you just call a GUI api that interfaces directly with the graphics > card? That's exactly what BitBlt is. The simple fact is that desktop images these days are HUGE. The device-to-memory path is not the most optimized path in a graphics chip. It just takes time to sn

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

2006-12-07 Thread Tim Roberts
James Matthews wrote: > Try Exec with the file handle The problem with that suggestion is that "exec" executes the new script in the same process, using the same namespaces. In that case, you might as well use "import". I'm assuming the OP had some reason for wanting to spawn separate processes.

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

2006-12-07 Thread Wu, Huaxing (STP)
Thanks for trying out and fix the typo (Outlook loves to capitalize the first letter) My environment is Windows 2000, and I was running from Eclipse. To follow your example, I tried to run them from command prompt, and I got C:\temp\x>aa.py in C:\temp\x\aa.py in C:\temp\x\bb.py in C:\temp\x\cc.py

[python-win32] Obtaining LSA functions via Python 1.5.2

2006-12-07 Thread Todd Dolinsky
Hi everyone - I'd like to write a script that can return a list of users/groups that have a given privilege. After researching a bit I found the win32security.Lsa* functions from the newest Python 2.* releases to be exactly what I'm looking for. The problem is that the application I am writing f

[python-win32] comtypes

2006-12-07 Thread Thomas Heller
comtypes seems to gain some attention (comtypes is a pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.) I'll try to release a new version over the next days. However, I'm wondering what would be the correct list to discuss this package... - the pyt

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

2006-12-07 Thread Thomas Heller
johnny loops schrieb: > 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 Yes. > -