What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Script :Need Some Help

Script :Need Some Help
Author: Message:
shadetoll
New Member
*


Posts: 3
Joined: May 2007
O.P. Huh?  Script :Need Some Help
Hi,

I want to create a script which allow:

1) When someone new speak to me and his/her Window is closed open one.
2) The first sending message will be said by a Ms Agent.


Per Example: Higter signs in   and speaks to me "Hi"  Ms Agent said "Hi"  but not "How Are You ??"  Blablabla.

Like this I Heard him and speak with him.


Because i've mananged to do  A script that tell everytime message from my friend.


code:
function OnEvent_ChatWndCreated (Chatwndtest){
OnEvent_ChatWndReceiveMessage(ChatWndtest,Origin,Message,MessageKind);
if (Origin != Messenger.Myname)
    {
        if (MessageKind = 1)
        {
         merlin.Show(); // Shows Merlin
         sayMessage = Origin + " says: " + Message;
            saythat = MsgPlus.RemoveFormatCodes(saymessage);
         merlin.Speak (saythat); // Makes Merlin say the string, "saythat"
        }
    }

}



Ty for your help

This post was edited on 05-28-2007 at 07:40 PM by shadetoll.
05-28-2007 07:39 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: Script :Need Some Help
code:
var talk = false;
function OnEvent_ChatWndCreated(Chatwndtest){
talk = true;
}

function OnEvent_ChatWndReceiveMessage(ChatWndtest,Origin,Message,MessageKind){
if (Origin != Messenger.MyName && MessageKind == 1 && talk == true)
{
     merlin.Show(); // Shows Merlin
     sayMessage = Origin + " says: " + Message;
     sayMessage = MsgPlus.RemoveFormatCodes(sayMessage);
     merlin.Speak (sayMessage); // Makes Merlin say the variable
     talk = false;
     }
}

should work

This post was edited on 05-28-2007 at 07:58 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
05-28-2007 07:55 PM
Profile PM Web Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: RE: Script :Need Some Help
quote:
Originally posted by roflmao456
code:
var talk = false;
function OnEvent_ChatWndCreated(Chatwndtest){
talk = true;
}

function OnEvent_ChatWndReceiveMessage(ChatWndtest,Origin,Message,MessageKind){
if (Origin != Messenger.MyName && MessageKind == 1 && talk == true)
{
     merlin.Show(); // Shows Merlin
     sayMessage = Origin + " says: " + Message;
     sayMessage = MsgPlus.RemoveFormatCodes(sayMessage);
     merlin.Speak (sayMessage); // Makes Merlin say the variable
     talk = false;
     }
}

should work

That's not a very good method and in fact will not work in the following scenario:
Person A opens a conversation with you
Person B opens a conversation with you
Person A messages you <-- MSagent will appear as planned
Person B messages you <-- Nothing will happen.

What you would probably need is for the variable talk to be replaced with an array which can be indexed with the window handle or something - that way the Agent will appear for the first message in every conversation window.
05-29-2007 09:52 AM
Profile PM 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