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
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
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
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
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
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.
-
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