Enable and Disable Timers via Scripting

Hello Everyone,

I found some time to work on my LED Marquee project, but I seem to have run into a snag… I can’t seem to change the timer running attribute using scripting. I don’t get any errors, but my code doesn’t fire either. :/

Right now all I am trying to do is stop the timer from starting over once it has reached it’s bounds like so:

propertyChanged Event[code]if event.propertyName == “value” :

if event.newValue >= event.source.max :

	event.source.running = false[/code]

Is this even possible right now? Thanks for any help.

–HandledException

If you look closely at how the timer bounds work, you’ll see that value never does reach max. It resets back to zero instantly. So, if max is 50, the timer value goes from 0-49.

I just did something similar, and keyed off the value == 0 instead. This worked ok, because you would only get a value event when going from some value to 0 anyway.

I’m sure one of the experts will jump in and correct me if I’m wrong, but I wanted to throw this out there in case it was holding up your project.

Step7 is exactly right. The other thing is that there is no “false” keyword in Python. Use 0 (zero) instead.

Thanks for the help guys. Worked like a charm.

–HandledException