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]| Argument | Description | Required | Repeatable |
|---|---|---|---|
| KEY|KEY:delayMs | ECP key name with optional delay in milliseconds. | yes | yes |
Options
| Flag | Value/type | Default | Required |
|---|---|---|---|
--device | string | — | no |
--host | string | — | no |
--password | string | — | no |
--delay | number | 100 | no |
--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 300Examples
rk keysequence Down Down Down Select --delay 300Environment variables
| Environment variable | Description |
|---|---|
RK_RCE_TOKEN | The 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_URL | Points 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_LIFECYCLE | Set 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
Updated about 4 hours ago
Did this page help you?