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

Welcome Window
Author: Message:
JustMe0507
New Member
*

Avatar

Posts: 2
– / Male / –
Joined: Mar 2007
O.P. Welcome Window
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;
);
03-17-2007 05:58 AM
Profile PM Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
RE: Welcome Window
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

This post was edited on 03-17-2007 at 08:23 AM by Jimbo.
03-17-2007 08:22 AM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Welcome Window
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.

This post was edited on 03-17-2007 at 08:30 AM by Felu.
03-17-2007 08:29 AM
Profile E-Mail PM Web Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
RE: Welcome Window
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
03-17-2007 10:02 AM
Profile E-Mail PM Find Quote Report
JustMe0507
New Member
*

Avatar

Posts: 2
– / Male / –
Joined: Mar 2007
O.P. RE: Welcome Window
Hey thats ok...I'll use the what you gave...its a start though...I was completely off:S  THANKS!
03-17-2007 02:41 PM
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