[python-win32] makepy.py usage and COM

2008-08-21 Thread Ferdinand Sousa
Hi I have python 2.5.1, pywin32 build 212 When using the makepy utility I noticed it used to crash out with the following traceback: Traceback (most recent call last): File "C:\Python25\Lib\site-packages\win32com\client\makepy.py", line 391, in rc = main() File "C:\Python25\Lib\site-pac

Re: [python-win32] Getting a printer's port

2008-08-21 Thread Mike Driscoll
Roger Upole wrote: Hi all, I am in need of a way to get a printer's port with Python. I can get the name of a printer and the comments field (I think) using win32print.EnumPrinters(), but that's as close as I can get. Most of the printers in my organization are networked through Linux CUPS.

[python-win32] Detect if user has a window opened in full screen mode?

2008-08-21 Thread Patrick Li
Hi, Is there a way I can detect whether or not the user has any window that is running in full screen mode? (Playing a game that takes up the entire screen, or having the browser maximized, etc) Thanks, Patrick ___ python-win32 mailing list python-win32

[python-win32] win32Com.gencache.EnsureDispatch Problems

2008-08-21 Thread Vinay Anantharaman
Hi, I executed the following code on a Windows Vista 64 bit machine with Python 2.4.2 and the latest win32com: from win32com.client import gencache try: outlook = gencache.EnsureDispatch("Outlook.Application") except TypeError: print "uh-oh" Result: Traceback (m

Re: [python-win32] Detect if user has a window opened in full screen mode?

2008-08-21 Thread Tim Roberts
Patrick Li wrote: > > Is there a way I can detect whether or not the user has any window > that is running in full screen mode? (Playing a game that takes up the > entire screen, or having the browser maximized, etc) Why on earth would you care? I don't know of any API that can answer this quest

Re: [python-win32] makepy.py usage and COM

2008-08-21 Thread Mark Hammond
> I have python 2.5.1, pywin32 build 212 > > When using the makepy utility I noticed it used to crash out with the > following traceback: Ouch - that is a bug in the typelib dialog - I've opened an issue at http://sourceforge.net/tracker/index.php?func=detail&aid=2065850&group_id=78 018&atid=5519

Re: [python-win32] win32Com.gencache.EnsureDispatch Problems

2008-08-21 Thread Mark Hammond
Strange - I can't repro this on my outlook box (my Vista 64 box doesn't have Outlook). It looks like a ^M character ended up in the file in place or the line ending we expect. Do you have any idea what could cause this? Could you please open the generated file in a text editor and see if it is o

Re: [python-win32] win32Com.gencache.EnsureDispatch Problems

2008-08-21 Thread Vinay Anantharaman
Hi, I was using xemacs as my editor and the internal shell to run the commands. I manually entered ^M into my last post to illustrate the error as I saw in XEmacs. I retried and used cmd.exe to run it and I receive the same error but the "^M" character does not show. I have opened it in another e

Re: [python-win32] win32Com.gencache.EnsureDispatch Problems

2008-08-21 Thread Mark Hammond
I get an error from yahoo: No shared folders are available. Sorry, the owner has not enabled any shared folders in their account. Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vinay Anantharaman Sent: Friday, 22 August 2008 9:33 AM To: [EMAIL PROTECTED]; python-win32

Re: [python-win32] win32Com.gencache.EnsureDispatch Problems

2008-08-21 Thread Vinay Anantharaman
Yahoo does not allow my folder to be public. I'm at a loss to make it available to everyone. Mark I will send it to you personally(Really appericated). -Original Message- From: Mark Hammond [mailto:[EMAIL PROTECTED] On Behalf Of Mark Hammond Sent: Thursday, August 21, 2008 16:49 To: Vinay