comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.

Results 178 comtypes issues
Sort by recently updated
recently updated
newest added

Some `VARIANT` out params are not initialised before being passed to a callback, setting these to a value results in `WindowsError: [Error -2147352568] Bad variable type` because comtypes attempts to...

Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import comtypes.client >>> w = comtypes.client.CreateObject("Word.Application")...

The Typelib time-stamp checking in https://github.com/enthought/comtypes/blob/master/comtypes/__init__.py#L39 does not seem to account for timezone differences. This leads to problems if a newly built TypeLib is attempted used in a more westward...

I try to execute followed code, `import array import comtypes.client import comtypes # Костанты режима выбора объектов acSelectionSetWindow = 0 acSelectionSetCrossing = 1 acSelectionSetFence = 2 acSelectionSetPrevious = 3 acSelectionSetLast...

Hello! I imported a typelib with comtypes.client.GetModule((tlb_id, 1, 0)) I can access to most of the unique defined values e.g. with mycmod : MyApp.ColorModel = comtypes.gen.MyApp.CSMLab But not, if the...

Simple call to a method from library with one argument (string). This works as expected in pywin32. ![image](https://user-images.githubusercontent.com/7870949/50457891-a4cece00-0924-11e9-9a2d-100ab604280d.png) Debug output: ``` > c:\python\anaconda3\envs\py36_32b\lib\site-packages\comtypes\__init__.py(602)call_with_inout() 601 def call_with_inout(self_, *args, **kw): --> 602...

We use `UIAutomationClient.dll` through comtypes in [pywinauto](https://github.com/pywinauto/pywinauto) GUI automation project. Everything worked fine until we started using `PropertyCondition` objects and other more complicated things. I found out that comtypes raises...

bug
64-bit

How do I access enumerations and their values such as [powerpoint.ppsaveasfiletype](https://docs.microsoft.com/en-us/office/vba/api/powerpoint.ppsaveasfiletype) through comtypes?

**Usage:** ``` python from comtypes.client import GetActiveObject, CreateObject app = CreateObject("Illustrator.Application") ``` **Error:** ``` python Traceback (most recent call last): File "C:/Users/username/Documents/GitHub/illustrator-scripting-python/illustrator-test.py", line 10, in app = CreateObject("Illustrator.Application") File "C:\Users\username\Documents\GitHub\illustrator-scripting-python\env\lib\site-packages\comtypes\client\__init__.py",...

function: def _get_row(self, dim, indices, lowerbounds, upperbounds): exception at line when: dim >= len(indices): restore = indices[dim] bugfix: result = [] if dim < len(indices): restore = indices[dim] else: return...