timer=createobject("roTimeSpan")
timer.mark()
While True
msg=port.getmessage()
if timer.totalseconds() > 600 then
content.starRating=checkStarRating()
timer.mark()
screen.setcontent(content)
end if
if type(msg)="roSpringboardScreenEvent" then
if msg.isbuttonPressed() then
if msg.getindex() = 0 then
playContent(content)
else if
...