quote:
Originally posted by kris2000
Thank you, but it doesn't work
code:
var x;
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin,Message,MessageKind)
{
if (Message == "test1") {
x.WriteString(0, "test");
}
if (Message == "test2") {
MsgPlus.DisplayToast("TEST", x.ReadString(0));
}
}
This is because this method is not supported by JScript as far as I can see. I will work if you do it like the first example given by Ash_