Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
hugetv
Level 7

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
Komag
Level 9

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
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
Level 7

Re: this code help

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