Repository navigation
Reference Script Functions Streamdeck
Also on the Cuebot Docs site.
Functions for C# (Cb.Call) and Python (cb.call). See Script functions for how to use them.
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.call("streamdeck.getInstances")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.call("streamdeck.isConnected")Changes the picture on a Stream Deck key. Leave the image empty to put the normal picture back.
| Value | What to put in |
|---|---|
buttonId |
The button id you gave the key in the Cuebot Stream Deck plugin. Needed. |
image |
A picture file on your computer, a web link (http or https) or a data: link. Empty puts the normal picture back. |
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.call("streamdeck.setBackground", buttonId="scene", image="C:\\Stream\\live.png")Switches a two-state Stream Deck key to state 0 or 1.
| Value | What to put in |
|---|---|
buttonId |
The button id you gave the key in the Cuebot Stream Deck plugin. Needed. |
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.call("streamdeck.setState", buttonId="mic", state=1)Changes the text shown on a Stream Deck key.
| Value | What to put in |
|---|---|
buttonId |
The button id you gave the key in the Cuebot Stream Deck plugin, like "deaths". Needed. |
title |
The text to show, like "Deaths: 3". |
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.call("streamdeck.setTitle", buttonId="deaths", title="Deaths: 3")Changes the value shown on a Stream Deck key or dial (Stream Deck +).
| Value | What to put in |
|---|---|
buttonId |
The button id you gave the key or dial in the Cuebot Stream Deck plugin. Needed. |
value |
The value to show, like "75%". |
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.call("streamdeck.setValue", buttonId="volume", value="75%", indicator=75)Flashes the warning sign on a Stream Deck key for a moment.
| Value | What to put in |
|---|---|
buttonId |
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.call("streamdeck.showAlert", buttonId="scene")Flashes the check mark on a Stream Deck key for a moment.
| Value | What to put in |
|---|---|
buttonId |
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.call("streamdeck.showOk", buttonId="scene")Flips a two-state Stream Deck key to its other state.
| Value | What to put in |
|---|---|
buttonId |
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.call("streamdeck.toggleState", buttonId="mic")Cuebot by Tech Daddy Digital · MIT license · Privacy
Cuebot Docs (the same pages, nicer to read)
- Home
- Start here
-
Guides
- Chat commands
- The mod portal
- Overlays and alerts
- Writing your own overlay widgets
- Text-to-speech
- Music and now playing
- Points, store and giveaways
- Subathons and goals
- Stream apps and devices
- VTuber apps
- Stream Deck
- The phone app
- Donations and integrations
- Discord bot
- The setup assistant and AI tools
- The assistant on your own computer
- Moving from Streamer.bot
- Cuebot's servers
- Writing code (C# and Python)
- Python in detail
- Using your own code editor
- Controlling Cuebot from other programs
- Backups and your data
- Linux
- Command-line options
- Troubleshooting
- What's experimental
- Reference