What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Very Simple Responder

[Request] Very Simple Responder
Author: Message:
sam06
New Member
*


Posts: 9
Joined: Jan 2007
O.P. [Request] Very Simple Responder
I was hoping someone could quickly notch this up for me, it should be VERY simple.

Basically, when MSN recieves a message, it responds with the first phrase in a list.
The next message responses with the second phrase.
And so on, until all the phrases have gone, at which it just goes back to the first phrase.

Could someone quickly make it for me? It should be simple.

Many thanks, I really appreciate this.

Sam
04-15-2009 08:52 PM
Profile E-Mail PM Find Quote Report
sam06
New Member
*


Posts: 9
Joined: Jan 2007
O.P. RE: [Request] Very Simple Responder
I should say, like the 'Personalised Status', but so it looks like a message, not an auto response
04-15-2009 09:01 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: [Request] Very Simple Responder
Using:
- Event ChatWnd_ReceiveMessage
- Func ChatWnd::SendMessage

There is no on/off switch. I want you to try out Plus! scripting and create a boolean variable.
JScript code:
var messages = new Array(), i=0;
messages[0] = "First Message";
messages[1] = "Second Message";
messages[2] = "Third Message";

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message){
if(Origin != Messenger.MyName){
if(i == messages.length)i=0;
ChatWnd.SendMessage(messages[i++]);
}
}

This post was edited on 04-16-2009 at 04:09 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
04-16-2009 04:08 AM
Profile PM Web Find Quote Report
sam06
New Member
*


Posts: 9
Joined: Jan 2007
O.P. RE: [Request] Very Simple Responder
Hey- Many thanks- that's brilliant!

Do you know how to make it work with each contact, because atm it;s sending different messages to different contacts; no idea how to sort this.

Any ideas?
04-16-2009 07:40 AM
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: [Request] Very Simple Responder
I get what you mean. Here is the new code:

JScript code:
var messages = new Array(), i=new Array();
messages[0] = "First Message";
messages[1] = "Second Message";
messages[2] = "Third Message";

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message){
if(Origin != Messenger.MyName){
if(!i[ChatWnd.Handle])i[ChatWnd.Handle]=0;
if(i[ChatWnd.Handle] == messages.length)i[ChatWnd.Handle]=0;
ChatWnd.SendMessage(messages[i[ChatWnd.Handle]++]);
}
}

This SHOULD work although I haven't tested it.

This post was edited on 04-18-2009 at 07:01 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
04-18-2009 07:00 AM
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