rk keysequence

Summary

Play back a sequence of ECP keypresses with delay between presses.

Description

Key arguments can include a delay in milliseconds after a colon. The default delay between keys is 100 milliseconds and must be greater than zero.

Usage

rk keysequence <KEY|KEY:delayMs> [<KEY|KEY:delayMs> ...] [options]
ArgumentDescriptionRequiredRepeatable
KEY|KEY:delayMsECP key name with optional delay in milliseconds.yesyes

Options

FlagValue/typeDefaultRequired
--devicestring—no
--hoststring—no
--passwordstring—no
--delaynumber100no

--device

Target device (ID, IP, or name)

Example:

rk keysequence Home Down Select --device 192.168.1.42

--host

Connect directly to a device by IPv4 or hostname

--password

Device developer password override

--delay

Default delay in ms applied after each key press

Example:

rk keysequence Down Down Select --delay 300

Examples

rk keysequence Down Down Down Select --delay 300

Environment variables

Environment variableDescription
RK_RCE_TOKENThe Roku Cloud Emulator (RCE) token. When set, it takes precedence over the token saved by rk device set-rce-token. That suits CI, where the token comes from a masked variable.
RK_RCE_API_URLPoints rk at another RCE Core API (an https host under rce.roku.com, or 127.0.0.1, [::1] or localhost on any port, for testing). The default is https://api.rce.roku.com/api/v1. A value that is not a URL is reported by the variable's name, without echoing it.
RK_RCE_NO_LIFECYCLESet to 1 by rk server in the processes it spawns: they use running RCE devices but never start or stop one. Not meant to be set by hand.

All documented variables are listed on rk environment variables.

See also


Did this page help you?