Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Incorporate comtypes in EG?

If you have a question or need help, this is the place to be.
Post Reply
DeanONH
Posts: 12
Joined: Fri Nov 23, 2007 11:57 am

Incorporate comtypes in EG?

Post by DeanONH »

Is there any plan to incorporate comtypes into EG in the near future?

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

http://sourceforge.net/projects/comtypes/

I am a Python newbie with alot of embedded C/C++ experience.

I am writing a plugin for the X10 CM15A.

Thx,

Dean
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Incorporate comtypes in EG?

Post by Bitmonster »

It would be possible to try to include this package, but it needs some modifications I guess. This package will work similar to the win32com package in the aspect that it will create files dynamically and this won't work out of the box if the package is frozen to an EXE (like EventGhost). For limited user accounts this will also not work if it creates the files in the program directory, as they might not have write access there. So this cache directory has to be moved to the application data folder of the user.

I never have tried this package and to see what has to be done I need an example. So I suggest you first try it with your plugin exclusively by adding the comtypes package to your plugin folder. Then you should be able to just import it with "import comtypes.client" or whatever normally. When we have something to play with, I can take a deeper look to patch the package for frozen execution and add it to the base distribution.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
CollinR
Experienced User
Posts: 265
Joined: Tue Sep 05, 2006 7:16 am
Location: Oklahoma
Contact:

Re: Incorporate comtypes in EG?

Post by CollinR »

Might bump this thread.

http://www.eventghost.org/forum/viewtopic.php?f=5&t=524

If xAP or xPL were supported you would get CM15a support by default, plus a bunch of other hardware devices.
DeanONH
Posts: 12
Joined: Fri Nov 23, 2007 11:57 am

Re: Incorporate comtypes in EG?

Post by DeanONH »

Sounds good to me.

I have a rudimentary receiver / transmitter CM15A program up and running using the CM15A SDK & comtypes. I did it using the PythonWin IDE. I plan to use the USB-UIRT plugin as a template for my EG CM15A plugin. I will move it to the EG environment.

As soon as I have it I will send it to you for EG integration, ok?

Thanks for your prompt response.

Dean
Post Reply