personalized status can do it.. it's built into Plus!.. just type
/persostat in the conversation window.
but if you really want to do it by script:
code:
var msg = "test message .. change this";
var enabled = false;
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Message === "/toggle"){
enabled = !enabled;
return "";
}
}
function OnGetScriptCommands(){
return "<ScriptCommands><Command><Name>toggle</Name><Description>Reply to all messages</Description></Command></ScriptCommands>";
}
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin){ // leave out Message and MessageKind since it will just reply one message to all received messages (excluding nudges)
if(Origin !== Messenger.MyName && enabled){
ChatWnd.SendMessage(msg);
}
}
for this code, you use
/toggle to turn it on or off (default off. change
false to
true to make it enabled by default)