you haven't defined a chat window to send the message from.
This will work:
code:
function OnEvent_MyPsmChange(NewPsm)
{
var Windows = Messenger.CurrentChats;
var e = new Enumerator(Windows);
for(; !e.atEnd(); e.moveNext())
{
var ChatWindow = e.item();
ChatWindow.SendMessage("/me has changed their personal message");
}
}
That will send the /me message to every open conversation you have.
Hope that is what you want
PS: you can also make it display your new psm by including it in the /me message like this
code:
ChatWindow.SendMessage("/me has changed their personal message to " + NewPsm);