From: Josh S. <jo...@vi...> - 2008-01-23 20:45:06
|
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 |