Search code examples
pythonwindowsscriptingactivexole

How to script an OLE component using Python


I would like to use Python to script an application that advertises itself as providing an OLE component. How should I get started?

I don't yet know what methods I need to call on the COMponents I will be accessing. Should I use win32com to load those components, and then start pressing 'tab' in IPython?


Solution

  • "Python and COM" contains an example. OLE is related to COM and ActiveX so you should look for those terms.

    "Python Programming on Win32" is a useful book. There is also a "Python Win32" mailing list.