"Aaron Colichia" <[EMAIL PROTECTED]> wrote

need to start using comtypes.client because it provides a better wrapper for

No expert but looking at the error message...


ie = comtypes.client.CreateObject('InternetExplorer.Application')
ie.__clsid
'{0002DF01-0000-0000-C000-000000000046}'

newie = comtypes.client.GetActiveObject('InternetExplorer.Application')
Traceback (most recent call last):
   obj = comtypes.GetActiveObject(clsid, interface=interface)

Note it says GetActiveObject takes a clsID as the parameter.
Yopu are passing a name.

try passing ie.__clsid as the first parameter and see if that works?

Just a guess,

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to