I haven't used EG yet - I'm still in the process of evaluating the right tools for the job at hand. So forgive my lack of understanding as to how exactly EG works, as I'm only at the stage of finding out if it's going to be suitable for me.
I'm attracted to EG for its multitude of hardware interfaces.
I'm very familiar a multimedia programming platform called "Adobe Director" (and thus have a development preference). I can plug ActiveX controls into it, to extend its capabilities.
I'm wondering if EG has an ActiveX control that I can plug into Director, so I can:
1) Route EG events to it, so I can receive events in Director
2) Send events from Director to EG
3) Retrieve data\properties\variables from EG and its plugins
4) Send data\properties\variables to EG and its plugins
I guess execution of functions would be covered by 1 and 2, provided I can send/receive data with the event...?
(Failing this, I guess we might be able to implement some kind of XML Socket interface that does a similar job.)
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.
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.
Interfacing EG to an external program using ActiveX control
-
eventghostPete
- Posts: 4
- Joined: Sun Jul 25, 2010 3:59 am
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Interfacing EG to an external program using ActiveX control
Attaching to an ActiveX from python is working fine. I done it for a plugin supporting an USB I/O board. See code below
BestR Walter
BestR Walter
Code: Select all
def attachOCX(self, flag):
#Attach interface to the OCX
self.AxkmkusbT = None
try:
self.AxkmkusbT = win32com.client.Dispatch(
"KMKUSB5I8OOCX.KMKUSB"
)
except:
raise eg.Exception(
self.b_nbr,
self.text.txt_OCX_CannotBeFound_T
)
if self.AxkmkusbT != None and flag:
print self.b_nbr, self.text.txt_OCX_Found_T
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
eventghostPete
- Posts: 4
- Joined: Sun Jul 25, 2010 3:59 am
Re: Interfacing EG to an external program using ActiveX control
That's great to know that you can plug in ActiveX into EG.
Conversely, can you plug EG into other environments via an ActiveX control that it exposes?
This would be similar to what http://www.autoitscript.com/autoit3/index.shtml can do...
"Also supplied is a combined COM and DLL version of AutoIt called AutoItX that allows you to add the unique features of AutoIt to your own favourite scripting or programming languages!"
I guess the mechanism might be an EG plugin module that has the EG dll interface code on one side, and the ActiveX interface on the other. So it would just pass thru events, properties, etc...?
Conversely, can you plug EG into other environments via an ActiveX control that it exposes?
This would be similar to what http://www.autoitscript.com/autoit3/index.shtml can do...
"Also supplied is a combined COM and DLL version of AutoIt called AutoItX that allows you to add the unique features of AutoIt to your own favourite scripting or programming languages!"
I guess the mechanism might be an EG plugin module that has the EG dll interface code on one side, and the ActiveX interface on the other. So it would just pass thru events, properties, etc...?
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Interfacing EG to an external program using ActiveX control
Well, it all depends on the capabilities of the ActiveX. If it has support for bidirectional comms, no problem
Another approach I used several times is to use a dll-interface
There are several other ways to communicate with EG as well, there are several posts about it in the forum
BestR Walter
Another approach I used several times is to use a dll-interface
There are several other ways to communicate with EG as well, there are several posts about it in the forum
BestR Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM