Delay
Add a delay between sub-actions

Delay Dialog
Parameters
Delay
Number required
The duration of the delay
Random
Checkbox
Generate a random delay between min/max values
To
Checkbox
If
Random
is selected, a random delay will be selected between the Delay
and To
valuesVariables
Name | Type | Description |
---|---|---|
No data |
C# Usage
Will make the code wait for specified amount of time, in ms
public void Wait(int milliseconds)
millisecondsint required
using System;
public class CPHInline
{
public bool Execute()
{
CPH.SendMessage("This is the first message.");
//Wait 5 seconds
CPH.Wait(5000);
CPH.SendMessage("This is the second message.");
return true;
}
}