I am receiving events from MediaCenter and I am trying to launch a command when the TV channel changes. The event that appears in the logger is "VMC.TrackNumber '108'" where the number in the comas is the channel number. I have added this event to a macro and added an event however it doesn't carry over the '108' or whatever the current channel number is. I would like to launch a .bat file on receiving this event appending whatever is in the coma i.e '108' to the end of the .bat that is launched. i.e if eventghost receives VMC.TrackNumber '108' it would launch "comand.bat 108".
Hope someone can help me with this.
Stephen
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.
Can I do this?
Re: Can I do this?
The value 108 is the payload for the VMC.TaskNumber event. The payload of the event is in the eg.event.payload variable.
So.. simply put {eg.event.payload} in the Command line options in your run application action. (including the curly braces)
-jinxdone
So.. simply put {eg.event.payload} in the Command line options in your run application action. (including the curly braces)
-jinxdone