[comtypes-users] How to process COM event?

2008-04-11 Thread Kelie
Hello, I'm trying to figure out how to process Excel's Application event using comtypes. This is what I have so far: import comtypes.client as cc xl = cc.GetActiveObject("Excel.Application") conn = cc.ShowEvents(xl) cc.PumpEvents(30) print "Done." With the above code, I do see events being list

Re: [comtypes-users] How to process COM event?

2008-04-11 Thread Kelie
Found a post at http://www.codeproject.com/KB/COM/python-comtypes-interop.aspx that was quite helpful. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still

Re: [comtypes-users] How to process COM event?

2008-04-11 Thread Thomas Heller
Kelie schrieb: > Hello, > > I'm trying to figure out how to process Excel's Application event using > comtypes. This is what I have so far: > > import comtypes.client as cc > xl = cc.GetActiveObject("Excel.Application") > conn = cc.ShowEvents(xl) > cc.PumpEvents(30) > print "Done." > > With the

Re: [comtypes-users] How to process COM event?

2008-04-11 Thread Kelie
Thomas Heller <[EMAIL PROTECTED]> writes: > I have added an example to the COM events section in the docs: > > http://starship.python.net/crew/theller/comtypes/#com-events > > and also added a link to the codeproject article. Thanks Thomas. I went to that page yesterday looking for an example be

Re: [comtypes-users] How to process COM event?

2008-04-11 Thread Thomas Heller
Kelie schrieb: > Thomas Heller <[EMAIL PROTECTED]> writes: >> I have added an example to the COM events section in the docs: >> >> http://starship.python.net/crew/theller/comtypes/#com-events >> >> and also added a link to the codeproject article. > > Thanks Thomas. I went to that page yesterday

Re: [comtypes-users] How to process COM event?

2008-04-11 Thread Kelie
Thomas Heller <[EMAIL PROTECTED]> writes: > Try to refresh the page in your browser. At least it interests me if it would have helped. It worked Thomas. Thanks. I'm using Firefox 2.0.0.13. It is surprising that the refresh didn't happen automatically. -

[comtypes-users] How to abort navigation at BeforeNavigate2 event

2008-04-11 Thread Adam Keys
This perhaps is a newbie question! How do I set the [out] cancel parameter to True when receiving a BeforeNavigate2 event? I am calling Navigate2( "someurl" ) on an InternetExplorer.Application object. The events are successfully firing through my EventSink object, however returning a Tr