What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » auto responding

auto responding
Author: Message:
jollyscripts
Junior Member
**


Posts: 16
Joined: Aug 2007
O.P. auto responding
the first thing is:


function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind){
if(Origin != Messenger.MyName){
var newChatWnd = Messenger.OpenChat("someone@someone.com");
newChatWnd.SendMessage(Message);
}
}

------------

how would i make it so if i recieved an message from one person then i sends it
to another email address because at the moment its just sending everybodys message to another e-mail address.




2nd thing



how would you make a script
that

1) if ( message  = hi and email address =  " " ) then
     send message ( " hello" )
12-23-2008 07:04 PM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
RE: auto responding
1: You have to iterate (or loop though) the whole contact list and match each contact's name with Origin.

JScript code:
for ( e = new Enumerator(Messenger.MyContacts);!e.atEnd();e.moveNext() ) {
var Contact = e.item();
if (Contact.Name == Origin){
// SendMessage code here
break;
}
}


2: please make it more clearer because i can't understand it fully.

This post was edited on 12-23-2008 at 07:16 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
12-23-2008 07:14 PM
Profile PM Web Find Quote Report
jollyscripts
Junior Member
**


Posts: 16
Joined: Aug 2007
O.P. RE: auto responding
for example

if somebody says to me

hi or hello

i want to send back a message saying hi
12-23-2008 07:20 PM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
RE: auto responding
Well then you would have to use the ChatWndReceiveMessage event and match the Message with some string.

JScript code:
var greetings = [
"hi",
"hello",
"hey"
];

function OnEvent_ChatWndSendMessage(ChatWnd, Origin, Message){
if(Origin != Messenger.MyName) for(i in greetings) if(Message == greetings[i]) ChatWnd.SendMessage ("hi");
}
[quote]
Ultimatess6
: What a noob mod
12-23-2008 08:39 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On