You can use CitectVBA to extend Citect SCADA. CitectVBA is a Visual Basic for Applications (VBA) and VBScript-compatible Basic scripting language. Citect SCADA has embedded support for CitectVBA.
For more information, see CitectVBA Programming Reference.
Note: CitectVBA is not supported on a 64-bit process, such as an alarm server operating in Extended Memory mode. If a call to a CitectVBA Cicode function occurs from a 64-bit process, an error code will be returned, a hardware alarm will be raised and the Cicode thread will stop.