How to script an OLE component using Python

joeforker picture joeforker · Nov 10, 2008 · Viewed 13.6k times · Source

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?

Answer

Brian Lyttle picture Brian Lyttle · Nov 10, 2008

"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.