Post 1 made on Tuesday October 5, 2010 at 09:08 |
deric.lts Long Time Member |
Joined: Posts: | September 2010 24 |
|
|
hi guys, I need to repeat my entire script for 3 times every 1 sec instead of "REPEAT every 1.00 sec" forever. I have used a for loop but it is not b able to work. Would appreciate if someone could provides me a more direct answer as i need it urgently. thank you very very much.
|
|
Post 2 made on Tuesday October 5, 2010 at 10:04 |
buzz Super Member |
Joined: Posts: | May 2003 4,382 |
|
|
deric.lts,
A page script either repeats forever (while the page is displayed) or not, but one can adjust the repeat time.
One solution for you is to use the repeating page script and a counter. Once the counter reaches 3 (or whatever), don't execute the code. I'm sure that you'll need to struggle with initializing the counter, but once you figure out how that works, you'll be a much better ProntoScript programmer.
For another approach look-up page.repeatInterval in the Developer Guide. This could be combined with a counter, but you will still need to deal with counter initialization.
|
|
Post 3 made on Tuesday October 5, 2010 at 14:53 |
Lyndel McGee RC Moderator |
Joined: Posts: | August 2001 12,999 |
|
|
Declare and initialize the counter variable in activity script. Increment/Check the counter variable in the page script.
I presume you are reading and working through the examples in the Dev Guide? Is this a wrong assumption
|
Lyndel McGee Philips Pronto Addict/Beta Tester
|
|
Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our
Marketplace. For information on how to advertise your service or product
click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.