Shoutbox

a responder to all messages - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: a responder to all messages (/showthread.php?tid=84394)

a responder to all messages by zogo on 06-18-2008 at 08:39 PM

is there a script that responds to all messages sent to u
and with a toggle (enable/dissable) option
if not can somone make it or give me the code


RE: a responder to all messages by Quantum on 06-18-2008 at 08:58 PM

If you type /all then your message in a convo the message will be sent to all people that you have an open convo with :P


RE: a responder to all messages by Jimbo on 06-18-2008 at 09:47 PM

quote:
Originally posted by john-t
If you type /all then your message in a convo the message will be sent to all people that you have an open convo with :P
I think thats not what he means at all.
I think he means he wants a script that sends the same reply to every single message recieved. If so, thats very easy to do i think.
RE: a responder to all messages by roflmao456 on 06-18-2008 at 09:58 PM

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)