there is no space before the colon - only after.
it should be searching for "AutoMessage: "
your full script:
JScript code:
var szStatus = {
2 : "appear offline",
3 : "online",
4 : "busy",
7 : "away",
6 : "idle",
// maybe it can happen
0 : "unknown",
// WLM 8.5
5 : "brb",
8 : "in a call",
9 : "out to lunch"
};
function OnEvent_ChatWndCreated(ChatWnd){
MsgPlus.DisplayToast("", "Your Messenger Status: " + szStatus[Messenger.MyStatus]);
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Messenger.MyStatus !== STATUS_BUSY && !/^AutoMessage: /.test(Message))
Messenger.MyStatus = STATUS_BUSY;
}
@cookiematty: that enumeration for status code you posted returns undefined if like variable[MyStatus]. using it like variable.STATUS_ONLINE will work, however.