pythoncom.GetActiveObject

PyIUnknown = GetActiveObject(cls)

Retrieves an object representing a running object registered with OLE

Parameters

cls : CLSID

The IID for the program. As for all CLSID's in Python, a "program.name" or IID format string may be used, or a real PyIID object.