Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hugetv
Visitor

this code help

this code error

		         else if msg.GetIndex() = 2 then
screen.Close()
return msg.isRemoteKeyPressed("keyBACK")
endif
Our system http://www.rokumanager.com
0 Kudos
3 REPLIES 3
Komag
Roku Guru

Re: this code help

Do you have a final "endif" in place? The "endif" I see is only for the "if" I can see.
0 Kudos
RokuKC
Roku Employee
Roku Employee

Re: this code help

"hugetv" wrote:
this code error

		         else if msg.GetIndex() = 2 then
screen.Close()
return msg.isRemoteKeyPressed("keyBACK")
endif


msg.isRemoteKeyPressed() doesn't take any parameters.

http://sdkdocs.roku.com/display/sdkdoc/Event+Loops
0 Kudos
hugetv
Visitor

Re: this code help

I'm trying to implement safety pin to enter a category
Our system http://www.rokumanager.com
0 Kudos