VoxCommando
Help and Support (Using VoxCommando) => EventGhost => Topic started by: DHHJ on March 15, 2011, 03:45:29 PM
-
Is there any way to get EG to trigger an event in VC? I'd like to use an IR remote to run an EG script and in doing so, an event is triggered in VC and a script is run.
Do I need to "turn something on" in EG or can a "simple" ;) mod be made to a VC file?
-
yes. you need to enable the broadcast plugin in eventghost.
then you can copy and paste this macro into your Eventghost configuration tree
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1486">
<Macro Name="Broadcaster: Broadcast: event" Expanded="True">
<Action>
BroadcastListener.Broadcast(u'event', u'eventName&&payload1&&payload2', 33000)
</Action>
</Macro>
</EventGhost>
then modify the eventName and payload as you wish, and trigger it as you see fit in eventghost (either with a button press or whatever).
-
Thx- works perfect!
:D
-
I went around and around with this a bit, so going to add a couple of other pictures for other newbies.
This is an event in VoxCommando called "Both". When triggered, by the event from Eventghost, it will launch both Actions shown.
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fimg696.imageshack.us%2Fimg696%2F3695%2Fvoxevent.jpg&hash=010ef222c55bd2d011e1c91ed812928ba01e17b6) (http://img696.imageshack.us/i/voxevent.jpg/)
This is the event in Eventghost - note where I've changed it:
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fimg88.imageshack.us%2Fimg88%2F122%2Feventghosteventtovox.jpg&hash=c43973ea7da2e74c087748ccad48a27d02d19869) (http://img88.imageshack.us/i/eventghosteventtovox.jpg/)
So, Eventghost will send the event "Both" to VoxCommando - and Vox will respond as you've determined.