1

I am working on a project where a existing backend uses ActiveX libraries. I need to program an extension in Python for this project and I think is necessary to use COM objects from a proprietary library. I would like to know if it is possible to capture ActiveX events from Python

My operating system is Windows and the backend is written in Visual Basic.

Can you provide some guidance on this topic?

Pablo Stark
  • 682
  • 10
  • 34

1 Answers1

0

Based on answer by luc

1) Install pywin32 by using pip (pip install pywin32)

2) Run makepy (C:...\Python27\Lib\site-packages\win32com\client) this will allow you to select the relevant ActiveX and create a python wrapper for it

3) Use the wrapper (created at step 2) in your code (see luc's answer for an excel example) or check this link

DarkLight
  • 79
  • 3
  • 16