C# methods (CPH)¶
In a Run C# code step you can use CPH, a toolbox of ready-made methods. CPH.SendMessage("Hi!") sends a chat message, CPH.ObsSetScene("Gameplay") switches your OBS scene, and so on. The names are the same as in Streamer.bot, so code written for Streamer.bot works in Cuebot.
New to code? Read Writing code (C# and Python) first. It shows where the code goes and how a whole script looks. Every example on these pages goes inside Execute():
public class CPHInline
{
public bool Execute()
{
// the example goes here
return true;
}
}
Python code has no CPH. It uses script functions instead, which C# can use too.