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.

Event triggering a macro question

If you have a question or need help, this is the place to be.
Post Reply
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Event triggering a macro question

Post by Fiasco »

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?
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Event triggering a macro question

Post by jinxdone »

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.
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Event triggering a macro question

Post by Bartman »

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.
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Event triggering a macro question

Post by jinxdone »

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.
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: Event triggering a macro question

Post by Fiasco »

Looks like the simple way to solve the problem is to alter my denon script as jinx has suggested.
Post Reply