You'll probably want to write a module for it, assuming you want it to work everywhere. I'd suggest getting started by checking out the following links from the VTScada Help Files:
You'll probably want to write a module for it, assuming you want it to work everywhere. I'd suggest getting started by checking out the following links from the VTScada Help Files:
Module Structure
https://www.vtscada.com/help/Content/Scripting/API/ModuleStructure.htm?tocpath=Scripting%7CScripting%20Fundamentals%20(Hello%20World!)%7C_____3
Launched vs Called Modules
https://www.vtscada.com/help/Content/Scripting/API/LaunchedVsCalled.htm?tocpath=Scripting%7CScripting%20Fundamentals%20(Hello%20World!)%7C_____12
MatchKeys Function
https://www.vtscada.com/help/Content/Pro_Functions/MatchKeys.htm