[python-win32] How to figure out the COM object name?

Mark Hammond mhammond at skippinet.com.au
Wed Apr 4 02:00:38 CEST 2007


> Newbie question..
>
> I am trying to connect to a COM object.. and I can't figure
> how to code it..

You really need to consult the documentation for the object itself.

>
> In Makepy the name of the COM object is:
>
>    OTA COM 9.0 Type LIbrary (1.0)

Try opening the file generated by makepy - if you are lucky, you will find a
comment along the lines of:

  This CoClass is known by the name 'Some.Name.Here'

Mark



More information about the Python-win32 mailing list