I'm working on a project to build an animated odometer, which will display the value of a variable defined by a UDP message.
My presentation is built with a zone for each digit in the number, with an imagelist state in each zone. Each imagelist is set to advance to the next item on a zone event specific to that digit (D1 for first digit, D2 for second digit, etc.)
What I am trying to do is have the presentation receive the UDP input, set the new odometer value, then trigger a script to advance the digits until the current value equals the new value.
The difficulty I'm having now is that I can't figure out how to send a zone message from inside the script. I can't seem to find the information in any of the documentation or example scripts.
This is my preliminary code for the odometer run loop, with the missing Zone Message syntax commented:
while odoCURRENT<>odoNEW
'Send Zone Message "D1"
odoCURRENT=odoCURRENT+1
CURRENTd1=CURRENTd1+1
if CURRENTd1=10 AND odoCURRENT<>odoNEW
CURRENTd1=0
'Send Zone Message "D2"
CURRENTd2=CURRENTd2+1
if CURRENTd2=10 AND odoCURRENT<>odoNEW
CURRENTd2=0
'Send Zone Message "D3"
CURRENTd3=CURRENTd3+1
if CURRENTd3=10 AND odoCURRENT<>odoNEW
'Send Zone Message "D4"
CURRENTd4=CURRENTd4+1
if CURRENTd4=10 AND odoCURRENT<>odoNEW
'Send Zone Message "D5"
CURRENTd5=CURRENTd5+1
if CURRENTd5=10 AND odoCURRENT<>odoNEW
'Send Zone Message "D6"
CURRENTd6=CURRENTd6+1
if CURRENTd6=10 AND odoCURRENT<>odoNEW
'Send Zone Message "D7"
end if
end if
end if
end if
end if
end if
end while
So what code do I need to use to send the appropriate zone messages?