My Denon plugin fires an event for off/on state like so
DenonSerial.Power 'STANDBY'
and
DenonSerial.Power 'ON'
Is it possible to trigger a macro and include the payload as part of the event that triggers the macro or do I have to rewrite my Denon plugin and append STANDBY and ON to the event itself?
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 triggering a macro question
Re: Event triggering a macro question
As far as I know it's not possible to trigger a macro using also the payload.
Actually it sounds like the Denon serial plugin should be changed to generate for example DenonSerial.Power_STANDBY and DenonSerial.Power_ON instead because that will be easier to use.
Actually it sounds like the Denon serial plugin should be changed to generate for example DenonSerial.Power_STANDBY and DenonSerial.Power_ON instead because that will be easier to use.
Re: Event triggering a macro question
You can do a little script compare the payload to a given value and use a conditional jump afterwards.
using points in the event names to separate logical section is preferable most times.
using points in the event names to separate logical section is preferable most times.
Re: Event triggering a macro question
Yep, It is possible to string compare etc. but it's not as convenient as just drag & dropping the event to a macro.
Maybe we should have a guideline for event naming / payload usage for scripters? It could help to make EG more streamlined.
Maybe we should have a guideline for event naming / payload usage for scripters? It could help to make EG more streamlined.
Re: Event triggering a macro question
Looks like the simple way to solve the problem is to alter my denon script as jinx has suggested.