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.

Using .Net with EG

If you have a question or need help, this is the place to be.
Post Reply
TMSxEventGhost
Posts: 6
Joined: Thu Sep 29, 2016 11:17 am

Using .Net with EG

Post by TMSxEventGhost »

Hi!

Since I am not a Python guy, but a .Net one, I am wondering how to import .Net assemblies in Event Ghost.

I found for example that we can use https://bitbucket.org/pydotnet/pydotnet/wiki/Home for that, however, I can not figure out how to make EG recognize this wrapper, after installing it via msi package, a naive

Code: Select all

import dotnet.seamless
dose not work, EG says no such module found.

Should I *register* PyDotNet somehow in EG, or maybe I should install it into some particular sub folder in EG directory? or that not possible at all? thx for help.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Using .Net with EG

Post by jonib »

TMSxEventGhost wrote:Should I *register* PyDotNet somehow in EG, or maybe I should install it into some particular sub folder in EG directory? or that not possible at all? thx for help.
EventGhost 0.4 uses a builtin Python 2.6, so for a Python module to be seen by it, the module needs to be somewhere like the plugins directory or "EventGhost install dir\lib26\site-packages". You can also specify where Python should look for modules with sys.path.

EventGhost 0.5 beta seems to work differently, as I have not looked into it can't give more info

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Using .Net with EG

Post by kgschlosser »

EG 0.5 will also add the python site-packages folder if you have python installed on your machine, it will add those packages for use in EG as well
If you like the work I have been doing then feel free to Image
TMSxEventGhost
Posts: 6
Joined: Thu Sep 29, 2016 11:17 am

Re: Using .Net with EG

Post by TMSxEventGhost »

Yeah that seems promising, however, unfortunately most of the plugins that I use still do not work with EG 0.5, so upgrading currently is not an option.

Any ideas of how to use .Net with current 0.4 EG? thx.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Using .Net with EG

Post by kgschlosser »

what are the plugins that you use??. I will check them out and see if we can't get them working with EG 0.5
If you like the work I have been doing then feel free to Image
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Using .Net with EG

Post by jonib »

TMSxEventGhost wrote:Any ideas of how to use .Net with current 0.4 EG? thx.
Looks like the pydotnet only supports Python 2.7 and above so it will probably not work in EventGhost 0.4.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
TMSxEventGhost
Posts: 6
Joined: Thu Sep 29, 2016 11:17 am

Re: Using .Net with EG

Post by TMSxEventGhost »

I see.

Ok I ended up currently to that will send mutual command line commands between my .Net based app and EG.

Dose EG supports any other protocol of communication between programs, like DDL for example?
Post Reply