Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
alexboyer
Visitor

Change default button selected

Say, for example, I have these two:

m.screen.AddButton(0,"Play from Beginning")
m.screen.AddButton(1,"Resume")


How would I make "Resume" selected by default without changing the order in which they appear?
Tags (1)
0 Kudos
2 REPLIES 2
renojim
Community Streaming Expert

Re: Change default button selected

m.screen.SetFocusedMenuItem(1)
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
Tags (1)
0 Kudos
alexboyer
Visitor

Re: Change default button selected

Sweet, thank you!
Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!