Go to documentation repository
Previous page Next page
All custom procedures described in the script must be in the same program body and before procedures in which they are called.
procedure ProcedureName(list of parameters){ //procedure body }
Attention!
The names of parameters must consist of one uppercase character.
Examples of use:
procedure ProcedureName(A,B) { n=A+" "+B; //when running macro 1 n=«Macro 1», when running macro 16 n=«Macro 16» } OnEvent("MACRO",N,"RUN") { a1=N; a2="Macro"; ProcedureName(a2,a1); }