- automationScript1 with 2 parameter
- automationScript2
how to trigger automationScript1 with parameters from automationScript2 in c# scripting?
Hi,
From automation script 2 you can use subscript = engine.PrepareSubscript (ref to Help) which will return a SubScriptOptions object
You can then use this object and call subscript.SelectScriptParam (ref to Help) before calling the StartScript method as illustrated in the example available on the first link help page
In the end you should have something like this
var subscript = engine.PrepareSubScript("MySubscript");
subscript.SelectScriptParam("myScriptParam1", "myValue1");
subscript.SelectScriptParam("myScriptParam2", "myValue2");
subscript.StartScript();