About 602,000 results
Open links in new tab
  1. Automating Windows Applications Using COM - Practical Business Python

    Jul 2, 2018 · Fortunately, python has the “Python for Windows Extensions” package known as pywin32 that allows us to easily access Window’s Component Object Model (COM) and control Microsoft applications via python. This article will cover some basic use cases for this type of automation and how to get up and running with some useful scripts.

  2. how to create com objects using python - Stack Overflow

    Sep 20, 2013 · Use the pywin32 module. Alternatively you can use the comtypes module instead. Because python is a interpreted language you can use COM in 2 separate ways. By generating a interoperability layer or by dynamic typing. Both comtypes and pywin32, can do dynamic typing.

  3. Python Programming on Win32: Chapter 5 - Introduction to COM

    In this chapter, we provide an introduction to using the Microsoft Component Object Model (COM) from Python. We will present enough introductory material so you can understand the key concepts and some simple examples that use Python and COM.

  4. Python for Windows Extensions — pywin32 305 documentation

    Python for Windows Extensions (pywin32) enables developers to work with most of Microsoft’s Windows API and Component Object Model (COM) interfaces in Python. The Win32 Extensions package provides access to the Windows API, including modules for obdc, win32evtlog, win32file, and many others.

  5. Using COM Objects from Python - O'Reilly Media

    Python programs use the win32com.client.Dispatch() method to create COM objects from a ProgID or CLSID. For example, you could use this code to create an Excel object: >>> import win32com.client >>> xl = win32com.client.Dispatch("Excel.Application") ...

  6. Python ctypes and DLL that uses a COM object - Stack Overflow

    Nov 13, 2012 · When you need an in-proc COM object, you don't link directly to the implementing DLL. You usually use CoCreateInstance / CoCreateInstanceEx , which will load the DLL for you. The lookup goes through the application's manifest and its dependant assembly manifests .

  7. Using COM Objects in Scripting Languages -- Part 2 (Python) - CodeProject

    Apr 20, 2010 · This article shows how to instantiate a COM object in Python and use its methods and properties.

  8. Component Object Model (COM) - Win32 apps | Microsoft Learn

    Aug 21, 2020 · The Component Object Model is a platform-independent, distributed, object-oriented system for creating binary software components that can interact. COM is the foundation technology for Microsoft's OLE (compound documents) and ActiveX technologies.

  9. Automate Apps with VBA API using Python | Nodes Automations

    Apr 4, 2025 · it’s python Component Object Model library for windows in simple terms it will allow you to use VBA API calls using python; for example i’ve added sample code to manipulate Excel and AutoCAD using Comtypes; But this should work with STAAD, ETABS, Word, Powerpoint; In Active development; Documentation. Requirements. Python 3.8 or later ...

  10. sgupta38/Component-Object-Model - GitHub

    Microsoft COM (Component Object Model) technology in the Microsoft Windows-family of Operating Systems enables software components to communicate. COM is used by developers to create re-usable software components, link components together to build applications, and take advantage of Windows services.