What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Auto Talking Script

[Help] Auto Talking Script
Author: Message:
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: [Help] Auto Talking Script
Hi makeshift, it's good to hear that people are genuinely interested in learning how to script something from start to finish.

For a really simple script which does this you first need to use the OnEvent_ChatWndReceiveMessage event which is documented in the Scripts Documentation. This "event is fired when a new message is received in a chat window" and provides you with among a variety of other things (see scripting docs), the message which was received:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {

    //Firstly, this event function is triggered when any message is added to the conversation including ones which we send to others, so we need to make sure that the person who sent this message wasn't us (note that Origin is one of the parameters which was passed to this function and contains the Nickname of the contact which sent the message)
    if(Origin != Messenger.MyName) {

        //The person who sent the message wasn't me, now you need to check if the message is the message which we are looking for
        if(Message == "How are you?") {

            //The contact has typed the message we're looking for so we need to reply!
            ChatWnd.SendMessage("Alright, you?");

        }
    }
}

This post was edited on 06-11-2007 at 05:32 AM by Volv.
06-11-2007 05:31 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Auto Talking Script - by makeshift on 06-10-2007 at 07:37 PM
RE: [Help] Auto Talking Script - by Jimbo on 06-10-2007 at 07:41 PM
RE: [Help] Auto Talking Script - by makeshift on 06-10-2007 at 08:16 PM
RE: [Help] Auto Talking Script - by Volv on 06-11-2007 at 05:31 AM
RE: [Help] Auto Talking Script - by makeshift on 06-12-2007 at 03:47 PM
RE: [Help] Auto Talking Script - by jollyscripts on 08-14-2007 at 12:42 PM
RE: RE: [Help] Auto Talking Script - by Jona on 08-31-2007 at 02:19 PM


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