
hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2015
02:14 PM
display a message every X seconds
as I can show a message every 20 seconds
Our system http://www.rokumanager.com
8 REPLIES 8

Komag
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2015
03:00 PM
Re: display a message every X seconds
In your main loop, have a timer that, when over 20 seconds (or 20000 milliseconds), calls the text function and resets itself to 0.
clock = CreateObject("roTimespan")
clock.Mark()
(WITHIN LOOP)
IF clock.TotalSeconds() >= 20
showMyText()
clock.Mark()
END IF
clock = CreateObject("roTimespan")
clock.Mark()
(WITHIN LOOP)
IF clock.TotalSeconds() >= 20
showMyText()
clock.Mark()
END IF

hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2015
03:18 PM
Re: display a message every X seconds
the code within Main() but does not work
sub Main()
timer = CreateObject("roTimespan")
timer.Mark()
print timer.TotalSeconds()
m.RegistryCache = CreateObject("roAssociativeArray")
categories = LoadConfig()
ShowPosterScreen(categories, "Menu", "", 0, 0)
if timer.TotalSeconds() >= 20
showMyText()
timer.Mark()
end if
end sub
sub Main()
timer = CreateObject("roTimespan")
timer.Mark()
print timer.TotalSeconds()
m.RegistryCache = CreateObject("roAssociativeArray")
categories = LoadConfig()
ShowPosterScreen(categories, "Menu", "", 0, 0)
if timer.TotalSeconds() >= 20
showMyText()
timer.Mark()
end if
end sub
Our system http://www.rokumanager.com

Komag
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2015
04:39 PM
Re: display a message every X seconds
It has to be within a repeating loop, such as :
sub Main()
timer = CreateObject("roTimespan")
timer.Mark()
print timer.TotalSeconds()
m.RegistryCache = CreateObject("roAssociativeArray")
categories = LoadConfig()
ShowPosterScreen(categories, "Menu", "", 0, 0)
WHILE TRUE
if timer.TotalSeconds() >= 20
showMyText()
timer.Mark()
end if
END WHILE
end sub[/quote]

hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2015
04:59 PM
Re: display a message every X seconds
but it looks like I have not run me showExpirationScreen ()
sub Main()
timer = CreateObject("roTimespan")
timer.Mark()
m.RegistryCache = CreateObject("roAssociativeArray")
'checks if the account exists
if ValidateLinkingDevice(GetDeviceESN()) = true
categories = LoadConfig()
ShowPosterScreen(categories, "Menu", "", 0, 0)
while true
if timer.TotalSeconds() >= 20
showExpirationScreen()
timer.mark()
end if
end while
else
ShowLinkScreen()
endif
end sub
Our system http://www.rokumanager.com

Komag
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2015
06:48 PM
Re: display a message every X seconds
I'm not sure how you will specifically work it in, only the general concept. I'm not familiar with most of the regular video channel stuff like ShowPosterScreen() or showExpirationScreen()

hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2015
09:11 AM
Re: display a message every X seconds
ok thank you very much achieved already solve
Our system http://www.rokumanager.com

hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2015
09:04 AM
Re: display a message every X seconds
I use this code to disable the other
while true
if timer.TotalSeconds() >= 20
showExpirationScreen()
timer.mark()
end if
end while
me de
while true
if timer.TotalSeconds() >= 20
showExpirationScreen()
timer.mark()
end if
end while
me de
Our system http://www.rokumanager.com

hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2015
04:20 PM
Re: display a message every X seconds
To put this script works but I disables all other functions
while true
if timer.TotalSeconds() >= 20
showExpirationScreen()
timer.mark()
end if
end while
Our system http://www.rokumanager.com