This should probably be in the plugins forum, but I don't seem to have permission to post there...
Anyway. Can event arguments be used in event ghost? For example, with the webserver plugin, I can send:
http://localhost/index.html?MediaPlayer ... ort_Status
and generate the event:
HTTP.MediaPlayer['Playing_Title', 'Transport_Status']
Is there a way to access the 'Playing_Title' etc... and send it to the OSD, or access it from withing another plugin?
My idea is to write an extender for Windows media player (or media center) that sends events to EventGhost on a remote machine (via the Network Receiver plugin or webserver plugin). Then to use the event to display playing status, chapter, title... etc... This info could also be used by an extended Desktop Remote plugin. Would this be possible?
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.
Event Arguments?
Re: Event Arguments?
You are probably looking for something like:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1259">
<Action>
EventGhost.ShowOSD(u'{eg.event.payload[0]}', None, (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0)
</Action>
</EventGhost>
In the above example we get:
eg.event.payload
(which in your case returns a list with two items in it "['Playing_Title', 'Transport_Status']" )
and then reference the first item in the list with [0]
Here you can find a description of what else than eg.event.payload are available for you.
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1259">
<Action>
EventGhost.ShowOSD(u'{eg.event.payload[0]}', None, (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0)
</Action>
</EventGhost>
In the above example we get:
eg.event.payload
(which in your case returns a list with two items in it "['Playing_Title', 'Transport_Status']" )
and then reference the first item in the list with [0]
Here you can find a description of what else than eg.event.payload are available for you.