News:

There is a soft-mute function which we use with the commands like "What song is this?" There is one for system volume, one for each of: MediaMonkey, XBMC, iTunes, MediaPortal.

Main Menu

EG Events

Started by DHHJ, March 15, 2011, 03:45:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DHHJ

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?

jitterjames

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&amp;&amp;payload1&amp;&amp;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).

DHHJ


stepppedup

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.



This is the event in Eventghost - note where I've changed it:



So, Eventghost will send the event "Both" to VoxCommando - and Vox will respond as you've determined.