comtypes
comtypes copied to clipboard
A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.
In either the CPython or IPython interactive shells: ``` python >>> import comtypes.client >>> xl = comtypes.client.CreateObject('Excel.Application', dynamic=True) >>> wb = xl.Workbooks.Open('nonexistent.xlsx') Traceback (most recent call last): File "", line...
Problem outlined here: http://groups.google.com/group/peachfuzz/browse_thread/thread/b02ea0d0e19ae3a. If you comment out the if paramflags lines it seems to be resolved. Looks like a problem with the _cominterface_meta's _fix_inout_args. When calling something that takes...
The test leaks tests fail under 64-bit python.
I am accessing SolidWorks via COM using comtypes. I create a new application object as follows: swApp=comtypes.client.CreateObject('sldworks.application') To open files with this application, you use the OpenDoc6 method, which is...
I try Autodesk MAYA 2008 windows operate from IE 7.0 use comtypes "CreateObject". ex. Click "openImageFile" 1. IE (Maya.CommandEngine.MEL) 2. MAYA (melCommand "python") 3. comtypes ( CreateObject("Photoshop.Application") ) open imageFile...
The COM servers are not working in with Python 2.6.1 and Windows XP. I'm suspecting this is related to python issue 4566 (http://bugs.python.org/issue4566). I'm trying to run the ./test/TestComServer.py script...
'named arguments' feature is 'should be added' since 16 years ago, according to commented(938fbd50d2077c6bd524790a9ed798c3990cdfc0) by Thomas Heller, the originator of this package. https://github.com/enthought/comtypes/blob/dbe4fa1bed94fef20b9c56faad1693230dd32c43/comtypes/__init__.py#L609-L611 Also, `bound_named_property.__call__` should support them. https://github.com/enthought/comtypes/blob/dbe4fa1bed94fef20b9c56faad1693230dd32c43/comtypes/__init__.py#L897-L917 If...
I have a WPF application, that internally uses an "app.config" file to run. About the app.config file: 1. It is placed in the same directory as the .cs file is....
Please close if feature requests are not supported here. I would be happy to submit a pull request for the above feature. Currently, converting variants of structs with heterogeneous types...
When registering a frozen inproc com server, an exception is thrown when LoadTypeLibEx is passed a c_wchar_p string instead of a unicode string. ``` python Traceback (most recent call last):...