Use OnCartSelected event to change color of D&R Airlite button
Posted: 17 Feb 2021 14:52
Hi Bernd,
When I start a cart, the color of the corresponding Airlite button changes to red thanks to the event OnAnyCartStarted which executes:
EXEC_SEND_DRAIRLITE_SETLED *[TOINT:{${cartid}}:{vert}:{2}:{8}]|1
So far so good. When I select a cart with the mouse, I would like to change to color of the corresponding Airlite button to green. I've gotten this far with OnCartSelected:
EXEC_SEND_DRAIRLITE_SETLED *[TOINT:{${cartid}}:{vert}:{2}:{8}]|${cartisselected}
However, this changes the color to red instead of green. Is there a way to add the color parameter for green to this command? I've tried adding the parameter to the end of the command, but that didn't work. Could be a syntax error?
EXEC_SEND_DRAIRLITE_SETLED *[TOINT:{${cartid}}:{vert}:{2}:{8}]|${cartisselected}|2
Thanks again,
Frank
When I start a cart, the color of the corresponding Airlite button changes to red thanks to the event OnAnyCartStarted which executes:
EXEC_SEND_DRAIRLITE_SETLED *[TOINT:{${cartid}}:{vert}:{2}:{8}]|1
So far so good. When I select a cart with the mouse, I would like to change to color of the corresponding Airlite button to green. I've gotten this far with OnCartSelected:
EXEC_SEND_DRAIRLITE_SETLED *[TOINT:{${cartid}}:{vert}:{2}:{8}]|${cartisselected}
However, this changes the color to red instead of green. Is there a way to add the color parameter for green to this command? I've tried adding the parameter to the end of the command, but that didn't work. Could be a syntax error?
EXEC_SEND_DRAIRLITE_SETLED *[TOINT:{${cartid}}:{vert}:{2}:{8}]|${cartisselected}|2
Thanks again,
Frank