Hi,
this is the sencond time I try to post to this mailing list but I do this 
because I don't think I succeded the first time, as I didn't receive my 
message.(Sorry for the duplication if any.)
I've tried to modify the unittest that tests the ShowEvents method like this:

    def test(self):
        # Start IE, call .Quit(), and check if the
        # DWebBrowserEvents2_OnQuit event has fired.  We do this by
        # calling ShowEvents() and capturing sys.stdout.
        #o = comtypes.client.CreateObject("InternetExplorer.Application")
        o = comtypes.client.CreateObject("Word.Application")
        conn = comtypes.client.ShowEvents(o)
       
 o.Quit()
        del o

        self.pump_messages_with_timeout(1000)

        stream = sys.stdout
        stream.flush()
        sys.stdout = self.old_stdout
        output = stream.getvalue().splitlines()
        print "output is: "
        print output

        #self.failUnless('# event found: DWebBrowserEvents2_OnMenuBar' in 
output)
        #self.failUnless('Event DWebBrowserEvents2_OnQuit(None)' in output)



When
I put "Word.Application" insead of "InternetExplorer.Application", I
don't get to see any events caught by the ShowEvents method.

Can
 anyone tell me why?

Thanks a million,
Radu.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to