Thomas Heller wrote:
> Usually, comtypes generates the wrappers automatically on demand.  The 
> attached
> script works for me; the needed magic is done by the (awfully named)
> comtypes.client.wrap function.  This function queries the com object for the 
> default
> interface, which is IWebBrowser2 in this case.
>   

Great!  Thanks, Thomas, works perfectly. 

> On the other hand, if you want to generate the module 'manually', you do this 
> by
> calling comtypes.client.GetModule(<typelib-name>).  <typelib-name> for 
> internet
> explorer is "shdocvw.dll", the module is generated in the comtypes.gen 
> package, in
> this case as comtypes.gen.SHDocVw module.
>   


Ahh, that makes sense.  I'll dig through there and take a look. 

Thanks again.

-Josh

-- 
________________________________________________________________
tasty electronic music vittles      --  bluevitriol.com
the only music blog you need        --  playtherecords.com
you are the dj.  interactive music  --  improbableorchestra.com
random observations of the bizarre  --  vitriolix.com


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to