Skip to content

Reference Script Functions Streamdeck

Kristopher Barrantes edited this page Nov 5, 2026 · 2 revisions

Stream Deck script functions

Also on the Cuebot Docs site.

Functions for C# (Cb.Call) and Python (a cb method each, or cb.call). See Script functions for how to use them.

A Run Python code step in the action editor

streamdeck.getInstances

Lists the Stream Deck apps that are connected to Cuebot, with their devices and Cuebot keys.

Gives back: A list of apps. Each has id, remote, pluginVersion, streamDeckVersion, platform, connectedAt, devices (name, type, size) and buttons (buttonId, row, column, state and more).

C#

var answer = await Cb.Call("streamdeck.getInstances");

Python

answer = cb.streamdeck_get_instances()

streamdeck.isConnected

Checks whether the Cuebot plugin in the Stream Deck app is connected right now.

Gives back: true while at least one Stream Deck plugin is connected, otherwise false.

C#

var answer = await Cb.Call("streamdeck.isConnected");

Python

answer = cb.streamdeck_is_connected()

streamdeck.setBackground

Changes the picture on a Stream Deck key. Leave the image empty to put the normal picture back.

Value In Python What to put in
buttonId button_id The button id you gave the key in the Cuebot Stream Deck plugin. Needed.
image image A picture file on your computer, a web link (http or https) or a data: link. Empty puts the normal picture back.
state state Optional. Which state of a two-state key to change: 0 or 1. Leave it out for the state it shows now.

Gives back: How many keys have this button id (0 when none was found).

C#

var answer = await Cb.Call("streamdeck.setBackground", new { buttonId = "scene", image = "C:\\Stream\\live.png" });

Python

answer = cb.streamdeck_set_background(button_id="scene", image="C:\\Stream\\live.png")

streamdeck.setState

Switches a two-state Stream Deck key to state 0 or 1.

Value In Python What to put in
buttonId button_id The button id you gave the key in the Cuebot Stream Deck plugin. Needed.
state state Optional. 0 or 1. Default 0.

Gives back: How many keys have this button id (0 when none was found).

C#

var answer = await Cb.Call("streamdeck.setState", new { buttonId = "mic", state = 1 });

Python

answer = cb.streamdeck_set_state(button_id="mic", state=1)

streamdeck.setTitle

Changes the text shown on a Stream Deck key.

Value In Python What to put in
buttonId button_id The button id you gave the key in the Cuebot Stream Deck plugin, like "deaths". Needed.
title title The text to show, like "Deaths: 3".
state state Optional. Which state of a two-state key to change: 0 or 1. Leave it out for the state it shows now.

Gives back: How many keys have this button id (0 when none was found).

C#

var answer = await Cb.Call("streamdeck.setTitle", new { buttonId = "deaths", title = "Deaths: 3" });

Python

answer = cb.streamdeck_set_title(button_id="deaths", title="Deaths: 3")

streamdeck.setValue

Changes the value shown on a Stream Deck key or dial (Stream Deck +).

Value In Python What to put in
buttonId button_id The button id you gave the key or dial in the Cuebot Stream Deck plugin. Needed.
value value The value to show, like "75%".
indicator indicator Optional. For dials: how full the bar is, 0-100.

Gives back: How many keys have this button id (0 when none was found).

C#

var answer = await Cb.Call("streamdeck.setValue", new { buttonId = "volume", value = "75%", indicator = 75 });

Python

answer = cb.streamdeck_set_value(button_id="volume", value="75%", indicator=75)

streamdeck.showAlert

Flashes the warning sign on a Stream Deck key for a moment.

Value In Python What to put in
buttonId button_id The button id you gave the key in the Cuebot Stream Deck plugin. Needed.

Gives back: How many keys have this button id (0 when none was found).

C#

var answer = await Cb.Call("streamdeck.showAlert", new { buttonId = "scene" });

Python

answer = cb.streamdeck_show_alert(button_id="scene")

streamdeck.showOk

Flashes the check mark on a Stream Deck key for a moment.

Value In Python What to put in
buttonId button_id The button id you gave the key in the Cuebot Stream Deck plugin. Needed.

Gives back: How many keys have this button id (0 when none was found).

C#

var answer = await Cb.Call("streamdeck.showOk", new { buttonId = "scene" });

Python

answer = cb.streamdeck_show_ok(button_id="scene")

streamdeck.toggleState

Flips a two-state Stream Deck key to its other state.

Value In Python What to put in
buttonId button_id The button id you gave the key in the Cuebot Stream Deck plugin. Needed.

Gives back: How many keys have this button id (0 when none was found).

C#

var answer = await Cb.Call("streamdeck.toggleState", new { buttonId = "mic" });

Python

answer = cb.streamdeck_toggle_state(button_id="mic")

Clone this wiki locally