Forum Discussion

idunno's avatar
idunno
Visitor
13 years ago

How to Exit Channel

There are certain channels that are able to exit when you press the up button. How can I make my program exit using different buttons?

2 Replies

  • The easiest way is to just return from your entry point function (main or RunUserInterface).

    --Mark
  • RokuRobB's avatar
    RokuRobB
    Streaming Star
    You can use the msg.isRemoteKeyPressed() function to determine if a remote control key has been pressed. msg.GetIndex() will then return the code for the particular key that was pressed. You could then exit your channel in the event of a specific remote key press.