prajwalshetty
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2015
01:02 PM
How to create a setInterval kind of thing in roku
Hi All,
Does any one have any idea on how we can achieve something like setInterval in roku?
Regards,
Prajwal
Does any one have any idea on how we can achieve something like setInterval in roku?
Regards,
Prajwal
2 REPLIES 2

RokuMarkn
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2015
02:19 PM
Re: How to create a setInterval kind of thing in roku
Assuming you mean that you want to execute a function periodically, see the "Timed events" section in the Event Loops documentation.
--Mark
--Mark

Komag
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2015
05:32 PM
Re: How to create a setInterval kind of thing in roku
One way to approach it: Basically while your main loop is running, have a roTimespan counting up, and check it every loop. Once it's as large as you want (seconds or milliseconds), do what you want and reset the counter to 0.