Post 7 made on Wednesday October 20, 2010 at 16:43 |
b00bie Founding Member |
Joined: Posts: | July 2001 396 |
|
|
Where is the above code running? In a button or in a page?
If you are trying to use the repeat interval on a page script, you should declare the variable SWLightsTimer at the activity level and assign it a value of -1.
Then, add code to your page script to check to see if timer is equal to -1 and assign an initial value of 5.
Then do the things you want.
However, from a Page script, you should be using scheduleActions and not executeActions as there can be problems with this (The old Prontoscript FAQ on Philips site referenced this).
Also, have you worked through the examples in the Dev Guide?
P.S. This is Lyndel signed @ Boobie's in New York.
|
|
|