Now I get the point and It works correct. Another question could be solved through another way. Not the spell mistake. I mean set variable in called script not in send box like "world.SetVariable("var1", wildcardsVB [0])" . If the wildcardsVB[0] means a number it will work correct but if means a chinese word it will show error to me. I am not sure whether this is a problem. By the way I choose jscript because it makes me thought of java. Can you support java?
In this case the trigger wildcards are named "foo" and "bar" and are used to set the variables as shown. You can use this technique for many variables.
This example uses JScript as the language since that is what you had, but in VBscript it would be very very similar.
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?
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.