Shoutbox

Welcome Window - 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: Welcome Window (/showthread.php?tid=72734)

Welcome Window by JustMe0507 on 03-17-2007 at 05:58 AM

I was wondering...how would I make it so that when someone opens an IM window with me that I could send a message automatically to them after or before they send any text.  Kinda like the encarta bot does?  Any one have an idea.  This is what I have but I'm pretty sure it'll be wrong.

code:
function OnEvent_ChatWndSendMessage(
[object] ChatWnd,
[string] Message

var Message = "Hello " + Contact::Name + "!";

return Message;
);

RE: Welcome Window by Jimbo on 03-17-2007 at 08:22 AM

code:
    function OnEvent_Signin(Email) {
    Debug.Trace("Contacts in the user's contact list:");
    var Contacts = Messenger.MyContacts;
    var e = new Enumerator(Contacts);
    for(; !e.atEnd(); e.moveNext())
    {
    var Contact = e.item();
    if (Contact.Status != 1) {
                        var ChatWnd = Messenger.OpenChat(Contact);
                        if (ChatWnd.EditChangeAllowed) ChatWnd.SendMessage("Hello" + Contact::Name + "!");
           }
    }
    }


What that does is, when you open a conversation with some one it automaticcaly sends hello + contact name
RE: Welcome Window by Felu on 03-17-2007 at 08:29 AM

Your code would send messages to every contact who isn't offline when you signin(no matter what status).

quote:
Originally posted by Jimbodude
What that does is, when you open a conversation with some one it automaticcaly sends hello + contact name
That isn't wanted. He wants a script which would send messages to someone when they open a conversation with him. Like convo open notifiers.
quote:
Originally posted by Jimbodude
Contact::Name
That won't work. You'll need
code:
Contact.Name

For the script, this is possible but convo open notifiers or rather session notifiers aren't reliable enough.
RE: Welcome Window by Jimbo on 03-17-2007 at 10:02 AM

quote:
Originally posted by Felu
Your code would send messages to every contact who isn't offline when you signin(no matter what status).
quote:
Originally posted by Jimbodude
What that does is, when you open a conversation with some one it automaticcaly sends hello + contact name
That isn't wanted. He wants a script which would send messages to someone when they open a conversation with him. Like convo open notifiers.
quote:
Originally posted by Jimbodude
Contact::Name
That won't work. You'll need
code:
Contact.Name

For the script, this is possible but convo open notifiers or rather session notifiers aren't reliable enough.
Oh sorry i missunderstoon :$

* Jimbo hides in shame

RE: Welcome Window by JustMe0507 on 03-17-2007 at 02:41 PM

Hey thats ok...I'll use the what you gave...its a start though...I was completely off:S  THANKS!