Need some help and ideas
ondrovic
Posts: 217
I was told that I need to develop something that will do the following:
1.> If a clients system is inactive for 24 hours. It will need to turn off all the audio zones, and turn off all the source equipment.
2.> If any push from any device is recieved it will reset the timer.
3.> The code needs to be independent ( module maybe ) so we can add it to other programs we have done in the past.
I am thinking that the easiest way would be to create a timeline event but I haven't ever done this before, so I am looking for suggestions.
Thanks
Chris Ondrovic
1.> If a clients system is inactive for 24 hours. It will need to turn off all the audio zones, and turn off all the source equipment.
2.> If any push from any device is recieved it will reset the timer.
3.> The code needs to be independent ( module maybe ) so we can add it to other programs we have done in the past.
I am thinking that the easiest way would be to create a timeline event but I haven't ever done this before, so I am looking for suggestions.
Thanks
Chris Ondrovic
0
Comments
If you have your system off in a sub routine it would be minimal amount of code, a module would be overkill.
Thanks it does exactly what I was looking for. I have one more question. Is there a way to get a realtime update of the amount of time that is left in the timeline? If there is whats the best way to do that?
Thanks again
ie,
TimeLeft = TIMELINE_GET(nResetTL)
returns the number of milliseconds elapsed since the start of the timer. Make sure you know about Help/NetLinx Keywords in Studio -- it's very helpful as a quick reference. Just searching the index for "timeline" yields a lot of useful info.
Jeremy