Re: [python-win32] COM -- Dispatch() parameter

2008-10-21 Thread Michel Claveau
Hi! Launch PythonWin, and use [Tools] COM Browser and COM Makepy for know the names of COM objects properties. @-salutations -- Michel Claveau ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] Feature request: adding unicode method to CDispatch

2008-10-21 Thread Tim Roberts
Jacek Pliszka wrote: Would it be a problem to add __unicode__ method like this: def __unicode__(self): try: return unicode(self.__call__()) except pythoncom.com_error, details: if details[0] not in ERRORS_BAD_CONTEXT:

Re: [python-win32] Feature request: adding unicode method to CDispatch

2008-10-21 Thread Tim Roberts
Jacek Pliszka wrote: Hi! I have something like this: wrd=Dispatch(Word.Application) doc=wrd.Documents.Open('test.doc') for j in doc.Tables: s=unicode(j) ... here I do a few searches on the date inside the table How can I do it without the method I mentioned ? I use it here

[python-win32] Interacting with the desktop as a service on Vista

2008-10-21 Thread Matt Herbert (matherbe)
Hey all, So I have a service that needs to interact with the desktop on a Vista machine. I've read multiple articles about Vista's updated security and it's restrictions on services. So I realize that in order for the service to interact with desktop, I'm going to need to create a new process as

Re: [python-win32] Interacting with the desktop as a service on Vista

2008-10-21 Thread Larry Bates
Matt Herbert (matherbe) wrote: Hey all, So I have a service that needs to interact with the desktop on a Vista machine. I've read multiple articles about Vista's updated security and it's restrictions on services. So I realize that in order for the service to interact with desktop, I'm going to