I would like to know is it possible that we could pass a parameter value from mimic Visio file to the C# code in the automation script.
e.g. in mimic visio file, i have "Script:AutomationScript|myParam="paramValue"|NoSetCheck" to trigger "AutomationScript" auto script.
And I want to pass the value "paramValue" to the "myParam" variable in the C# code in my automation script.
e.g., in my C# code in automation script:
engine.ShowUI(Convert.ToString(myParam));
Then I can see "paramValue" in popup window.
Thanks
Hi Miao,
If I understand correctly, you would like to read the value passed through the script parameter 'myParam'. For this purpose you could use the method GetScriptParam:
ScriptParam spMyParam = engine.GetScriptParam("myParam");
engine.GenerateInformation("myParam=" + spMyParam.Value);
Thank you very much