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 157 comtypes issues
Sort by recently updated
recently updated
newest added

`.../test/test_Excel.py` was attempting to test the behavior of a [`bound_named_property`](https://github.com/enthought/comtypes/blob/782444957e1133bb40825576540b8a5fc79dd398/comtypes/__init__.py#L836-L874). Currently those tests has been skipped.(see https://github.com/enthought/comtypes/issues/267#issuecomment-1029305670, #271, #298) https://github.com/enthought/comtypes/blob/782444957e1133bb40825576540b8a5fc79dd398/comtypes/test/test_excel.py#L44-L53 We should restore those tests with using non-environment specific library,...

enhancement
tests
help wanted

I have a comtypes use case where I am implementing a plugin style architecture over COM (each plugin is a separate COM server implementing the same interface). To allow the...

enhancement

__With Comtypes 1.1.2 and Python 2.7.10__ I have noticed that some times the generated wrappers have only the first two lines as below: # -*- coding: mbcs -*- typelib_path =...

bug

``` 24 ) 25 pObject = POINTER(cls)() ---> 26 pServiceProvider.QueryService( 27 clsid or cls._iid_, 28 cls._iid_, 29 pObject, 30 ) 31 return pObject COMError: (-2147467262, 'No such interface supported', (None,...

Since `Release 1.0.0`, `comtypes` dropped support for Python 2.5. https://github.com/enthought/comtypes/blob/0094a55ae3d80fc115b51ace9ae274263ac570e9/CHANGES.txt#L123-L131 But still exists a workaround for `_ctypes.COMError`. https://github.com/enthought/comtypes/blob/0094a55ae3d80fc115b51ace9ae274263ac570e9/comtypes/__init__.py#L45-L62

**I have the code like this:** ```python import comtypes from comtypes import * from comtypes.client import * comtypes.client.GetModule('UIAutomationCore.dll') from comtypes.gen.UIAutomationClient import * uia = CreateObject(CUIAutomation._reg_clsid_, interface=IUIAutomation) from pywinauto.application import Application...

bug

> Traceback (most recent call last): File "test.py", line 3, in from pywinauto.application import Application File "C:\Python27\lib\site-packages\pywinauto\__init__.py", line 89, in from . import findwindows File "C:\Python27\lib\site-packages\pywinauto\findwindows.py", line 42, in from...

Attached is a zip file of every type library that I could compile out of the Windows SDK. There are a total of 671 of them. [windows_type_libraries.zip](https://github.com/enthought/comtypes/files/8103441/windows_type_libraries.zip) I hope that...

shared_info

This is not an issue but I would like to share something I have put together. I have found it very useful as it contains a very large number of...

shared_info