[python-win32] Re: Windows "Browse to" message

2006-03-02 Thread Roger Upole
>> [EMAIL PROTECTED] wrote: >>> When you open an html file or click on a link outside of a browser, >>> it opens it >>> in your default browser. What I'd like to do is to catpure this message and >>> grab the URL text string to see where the browser is going. >>> >>> I was looking at PyHook, but I

Re: [python-win32] ReadEventLog doesn't return, CPU usage increases

2006-03-02 Thread Mark Hammond
> The problem is that after the script has run from some time (usually several > hours), the call to ReadEventLog seems to hang and the CPU usage increases > dramatically (from nil to 30-50%). The script does not exit this stage, > and has to be broken manually with Ctrl-C. There is the possibil

[python-win32] how to open a file with associated application?

2006-03-02 Thread Tim Roberts
On Thu, 02 Mar 2006 16:13:18 -0500, Michael Li <[EMAIL PROTECTED]> wrote: >In Windows, there is a default way to open a file, >like double click test.txt file, then Notepad will >open the test.txt, double click test.doc, then >MS-Word will open the test.doc. > >If I want to open a specific file,

Re: [python-win32] how to open a file with associated application ?

2006-03-02 Thread Ralf Schmitt
Michael Li schrieb: > hi, > > In Windows, there is a default way to open a file, > like double click test.txt file, then Notepad will > open the test.txt, double click test.doc, then > MS-Word will open the test.doc. > > If I want to open a specific file, test.KEY, > with my application, how do I d

[python-win32] ReadEventLog doesn't return, CPU usage increases

2006-03-02 Thread Jeff Quandt
Title: ReadEventLog doesn't return, CPU usage increases This is running Python 2.3 on windows 2003/windows xp. I have written a script to display and filter the Win32 event log in a scrolling list to the command line (it also does some summary tasks).  It uses the win32evtlog.ReadEventLog t

Re: [python-win32] how to open a file with associated application ?

2006-03-02 Thread James Carroll
Hi Michael, Try this: import os os.startfile(r"C:\DEFORM3D\PROBLEM\test.KEY") -Jim On 3/2/06, Michael Li <[EMAIL PROTECTED]> wrote: > hi, > > In Windows, there is a default way to open a file, > like double click test.txt file, then Notepad will > open the test.txt, double click test.doc, then

[python-win32] how to open a file with associated application ?

2006-03-02 Thread Michael Li
hi, In Windows, there is a default way to open a file, like double click test.txt file, then Notepad will open the test.txt, double click test.doc, then MS-Word will open the test.doc. If I want to open a specific file, test.KEY, with my application, how do I do it ? The suffix ".KEY" is fixed. M

[python-win32] Closing COM object (e.g. Excel) when Python app dies

2006-03-02 Thread Warren Sande
Title: Message  have a PythonCard app that opens up an Excel spreadsheet using the win32com module.   I started doing this in Perl, then recently switched to Python (and PythonCard), which I am just learning.   In Perl, I found the following code snippet which I used in my app:   ---

Re: [python-win32] Certificate Services in Windows.

2006-03-02 Thread Jeff Fisher
> You can use CAPICOM, which is an automation interface > to the cryptography and certificate APIs. I don't think it > comes installed on most systems, but you can download > it from MSDN. Works great. CAPICOM is exactly what I needed. Now if only I could use ADSI to set SSLCertHash in IIS but th