win32com.client.Dispatch Class Label

前端 未结 2 683
心在旅途
心在旅途 2021-01-23 01:34

I am trying to connect to a COM object using python.

More specifically, I am using ASCOM standard drivers to connect to a MaxDome II, and do not know how to reference t

2条回答
  •  [愿得一人]
    2021-01-23 02:03

    This "Celestron.Telescope" string is called a ProgID (you can google on this term quite easily).

    They arere located under the HKEY_LOCAL_MACHINE\SOFTWARE\Classes registry key for the whole machine and in HKEY_CLASSES_ROOT for the current running user.

    When COM creates an instance of a component, it will use the current user's view of the registry. Most keys are in HKLM but there can be some local overrides in HKCR.

提交回复
热议问题