Hello, I am trying to familar with mushclient.It seems good. But I was muddled by the followed problem.
version: 3.5
Example:
trigger: ^>? ?(.*)\s+(.*)$
send: %1
send: script
regular expression checked
script: setVar
Here is script:
function SetVar(thename, theoutput, wildcardsVB)
{
wildcards = VBArray(wildcardsVB).toArray();
// for (i = 0; i < 10; i++)
// world.note(wildcards [i]);
world.setVariable("var1", wildcardsVB [0]);
world.setCariable("var2", wildcardsVB [1]);
}
I dont know whether the first "send" is right?It did not work correct.Does any one could give me some suggestion?
Another question:
If I set even one variable in script with other language like chinese. It work correct but will appear to me a dialog that say the chinese words hasn't been defined.I don't know whether it is the mushclient's problem or my script's problem?
Hope to know!
version: 3.5
Example:
trigger: ^>? ?(.*)\s+(.*)$
send: %1
send: script
regular expression checked
script: setVar
Here is script:
function SetVar(thename, theoutput, wildcardsVB)
{
wildcards = VBArray(wildcardsVB).toArray();
// for (i = 0; i < 10; i++)
// world.note(wildcards [i]);
world.setVariable("var1", wildcardsVB [0]);
world.setCariable("var2", wildcardsVB [1]);
}
I dont know whether the first "send" is right?It did not work correct.Does any one could give me some suggestion?
Another question:
If I set even one variable in script with other language like chinese. It work correct but will appear to me a dialog that say the chinese words hasn't been defined.I don't know whether it is the mushclient's problem or my script's problem?
Hope to know!