Hello gang,
I'm rather new to all of this, but have some very basic programming knowledge. I'm having a hard time getting EG to do what I need it to do.
Its for my Onkyo receiver. i can get it to send out a QSTN to my receiver and get a response back just fine. What i need it to do now is send this response back as a payload to another application via a payload.
I have it working but its a very sub-par way of doing it i'm sure. Right now depending on the response back: example: OnkyoISCP.SLI00 i make another macro that broadcast this is for source TV/CD (via a payload: eg.AVR_Source&&CD) and send it to my other application. which is voxcommando. read CD as the pay load and then i use it to do what i need.
now, i've done this with all sources, this is not ideal, if i can just make a single macro in Event Ghost that says whatever the result is returned via the first QSTN from my receiver's event, add this to the broadcaster payload, such as that would be a variable that would always change depending on my source it returns. This way i dont need to manually add macro's for each source returned. Also this will teach me more on how to use this program and i can use this for other tasks later on.
I hope this makes sense, any help would be appreciated!
i'm using the latest version of EG.
Windows Vista OS
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.
A little novice help please :)
Re: A little novice help please :)
i got some help from the VC forum here is what was needed incase others need this information:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1600">
<Folder Name="ONkyo ISCP Qstns" Expanded="True">
<Macro Name="Onkyo ISCP: SendCommand: SLIQSTN" Expanded="True">
<Action>
OnkyoISCP.SendCommand(u'SLIQSTN')
</Action>
<Action>
OnkyoISCP.SendCommand(u'PWRQSTN')
</Action>
</Macro>
<Macro Name="Broadcaster: Broadcast: Onkyo{eg.event}" Expanded="True">
<Event Name="OnkyoISCP.SLI" />
<Event Name="OnkyoISCP.PWR" />
<Action>
BroadcastListener.Broadcast(u'event&&Onkyo.{eg.event.suffix}', u'{eg.event.payload}', 33000)
</Action>
</Macro>
</Folder>
</EventGhost>
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1600">
<Folder Name="ONkyo ISCP Qstns" Expanded="True">
<Macro Name="Onkyo ISCP: SendCommand: SLIQSTN" Expanded="True">
<Action>
OnkyoISCP.SendCommand(u'SLIQSTN')
</Action>
<Action>
OnkyoISCP.SendCommand(u'PWRQSTN')
</Action>
</Macro>
<Macro Name="Broadcaster: Broadcast: Onkyo{eg.event}" Expanded="True">
<Event Name="OnkyoISCP.SLI" />
<Event Name="OnkyoISCP.PWR" />
<Action>
BroadcastListener.Broadcast(u'event&&Onkyo.{eg.event.suffix}', u'{eg.event.payload}', 33000)
</Action>
</Macro>
</Folder>
</EventGhost>