<!-- @license MIT -->

<!-- This code can execute several ScadaBR scripts sequentially -->

<input
    type="button"
    value="Run multiple scripts"
    onclick="runScripts([ 'SC_002200', 'SC_110022', 'SC_002211' ]);"
>

<div style="max-width: 50px; max-height: 50px; overflow: hidden;">
    <script>
        function runScripts(scripts) {
            if (typeof scripts == "string")
                mango.view.executeScript(scripts);
            else if (Array.isArray(scripts))
                scriptRunner(sc