Repository navigation
Reference Script Functions Remote
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.
Lists the other Cuebot computers set up on the Remote page, and the ones connected to you, with their status.
Gives back: A list. Each item has name, outgoing (true when you connect to it), state (like "Connected"), message, instanceId, instanceName, instanceOs, instanceVersion and connectedAt.
C#
var answer = await Cb.Call("remote.getInstances");Python
answer = cb.remote_get_instances()Sends a named signal to another Cuebot computer, so an action there can react to it. Fails when the name is empty.
| Value | In Python | What to put in |
|---|---|---|
name |
name |
The signal name, like "sceneChanged". |
instance |
instance |
Optional. Which computer to send to (its name or id). Leave it out for every connected one. |
args |
args |
Optional. Extra values to send along, as an object, like { "scene": "Gameplay" }. |
Gives back: How many computers got the signal (0 when none are connected).
C#
var answer = await Cb.Call("remote.sendSignal", new { name = "sceneChanged", args = new { scene = "Gameplay" } });Python
answer = cb.remote_send_signal(name="sceneChanged", args={"scene": "Gameplay"})Waits until another Cuebot computer sends a signal with this name. Only signals that arrive after you start waiting count.
| Value | In Python | What to put in |
|---|---|---|
name |
name |
The signal name to wait for, like "ready". |
instance |
instance |
Optional. Only accept it from this computer (its name or id). Leave it out for any computer. |
timeoutMs |
timeout_ms |
Optional. How long to wait, in milliseconds. Leave it out for 30000 (30 seconds); 0 waits forever. |
Gives back: The signal with name, sender (the action that sent it), instanceId, instanceName, instanceLabel, instanceOs, instanceVersion and args. null when time ran out.
C#
var answer = await Cb.Call("remote.waitForSignal", new { name = "ready", timeoutMs = 10000 });Python
answer = cb.remote_wait_for_signal(name="ready", timeout_ms=10000)Cuebot by Tech Daddy Digital · MIT license · Privacy
Cuebot Docs (the same pages, nicer to read)
- Home
- Start here
-
Guides
- Chat commands
- 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
