Skip to main content

Control API

Handles TV remote control.

control.appAlexa

Signatures

appAlexa(n_times \ 1, delay \ 100)

Description

Presses the appAlexa button on the remote control.

control.appDisney

Signatures

appDisney(n_times \ 1, delay \ 100)

Description

Presses the appDisney button on the remote control.

control.appFreevie

Signatures

appFreevie(n_times \ 1, delay \ 100)

Description

Presses the appFreevie button on the remote control.

control.appHulu

Signatures

appHulu(n_times \ 1, delay \ 100)

Description

Presses the appHulu button on the remote control.

control.appNetflix

Signatures

appNetflix(n_times \ 1, delay \ 100)

Description

Presses the appNetflix button on the remote control.

control.appPrime

Signatures

appPrime(n_times \ 1, delay \ 100)

Description

Presses the appPrime button on the remote control.

control.back

Signatures

back(n_times \ 1, delay \ 100)

Description

Presses the back button on the remote control.

control.chNext

Signatures

chNext(n_times \ 1, delay \ 100)

Description

Presses the chNext button on the remote control.

control.chPrev

Signatures

chPrev(n_times \ 1, delay \ 100)

Description

Presses the chPrev button on the remote control.

control.down

Signatures

down(n_times \ 1, delay \ 100)

Description

Presses the down button on the remote control.

control.enterText

Signatures

enterText(text)

enterText(arg, text, sleep \ 100)

Description

Enters the provided string of text via a given keyboard, or the system keyboard if one is not provided.

Examples:

  control.enterText("Hello world!")
  local kb = keyboard.basic([[
e h l
n m o
]], "h") -- Sets "h" as the initial key. Will set the top left key by default

control.enterText(kb, "hello")

control.guide

Signatures

guide(n_times \ 1, delay \ 100)

Description

Presses the guide button on the remote control.

control.home

Signatures

home(n_times \ 1, delay \ 100)

Description

Presses the home button on the remote control.

control.info

Signatures

info(n_times \ 1, delay \ 100)

Description

Presses the info button on the remote control.

control.input

Signatures

input(n_times \ 1, delay \ 100)

Description

Presses the input button on the remote control.

control.left

Signatures

left(n_times \ 1, delay \ 100)

Description

Presses the left button on the remote control.

control.menu

Signatures

menu(n_times \ 1, delay \ 100)

Description

Presses the menu button on the remote control.

control.mute

Signatures

mute(n_times \ 1, delay \ 100)

Description

Presses the mute button on the remote control.

control.num0

Signatures

num0(n_times \ 1, delay \ 100)

Description

Presses the num0 button on the remote control.

control.num1

Signatures

num1(n_times \ 1, delay \ 100)

Description

Presses the num1 button on the remote control.

control.num2

Signatures

num2(n_times \ 1, delay \ 100)

Description

Presses the num2 button on the remote control.

control.num3

Signatures

num3(n_times \ 1, delay \ 100)

Description

Presses the num3 button on the remote control.

control.num4

Signatures

num4(n_times \ 1, delay \ 100)

Description

Presses the num4 button on the remote control.

control.num5

Signatures

num5(n_times \ 1, delay \ 100)

Description

Presses the num5 button on the remote control.

control.num6

Signatures

num6(n_times \ 1, delay \ 100)

Description

Presses the num6 button on the remote control.

control.num7

Signatures

num7(n_times \ 1, delay \ 100)

Description

Presses the num7 button on the remote control.

control.num8

Signatures

num8(n_times \ 1, delay \ 100)

Description

Presses the num8 button on the remote control.

control.num9

Signatures

num9(n_times \ 1, delay \ 100)

Description

Presses the num9 button on the remote control.

control.ok

Signatures

ok(n_times \ 1, delay \ 100)

Description

Presses the ok button on the remote control.

control.play

Signatures

play(n_times \ 1, delay \ 100)

Description

Presses the play button on the remote control.

control.power

Signatures

power(n_times \ 1, delay \ 100)

Description

Presses the power button on the remote control.

control.powerOff

Signatures

powerOff()

Description

Presses the powerOff button on the remote control.

control.powerOn

Signatures

powerOn()

Description

Presses the powerOn button on the remote control.

control.right

Signatures

right(n_times \ 1, delay \ 100)

Description

Presses the right button on the remote control.

control.settings

Signatures

settings(n_times \ 1, delay \ 100)

Description

Presses the settings button on the remote control.

control.up

Signatures

up(n_times \ 1, delay \ 100)

Description

Presses the up button on the remote control.

control.volumeDown

Signatures

volumeDown(n_times \ 1, delay \ 100)

Description

Presses the volumeDown button on the remote control.

control.volumeUp

Signatures

volumeUp(n_times \ 1, delay \ 100)

Description

Presses the volumeUp button on the remote control.