What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [REQUEST] Online Contacts Msg Sender

[REQUEST] Online Contacts Msg Sender
Author: Message:
erickjbc
New Member
*


Posts: 4
Joined: Jun 2006
O.P. [REQUEST] Online Contacts Msg Sender
Hi all and thanks to all developers for their help.

What Im looking for a script or can someone make one.
That when a contact conects MSN auto sends a msg to another contact, all this while im apper offline. Some may think is kinda strange but the situation is that I have an account only for my cellphone and when a contact conects I want it to send a message to my Phone MSN.

Thanks all
09-26-2006 10:06 PM
Profile E-Mail PM Find Quote Report
cloudhunter
Senior Member
****


Posts: 536
Reputation: 18
36 / – / –
Joined: Dec 2005
RE: [REQUEST] Online Contacts Msg Sender
Is the other account going to be on a mobile account? Because as far as I know, mobile windows and chat windows are treated differently, and only the chat window is able to have messages sent to it.

Cloudy
[Image: cloudy.jpg]
Sig by pirateok/marisaok/marisa ;)
quote:
Originally posted by Moulin Rouge
The greatest thing you'll ever learn, is just to love and be loved in return

6698 days, 1 hour, 51 minutes, 13 seconds ago
09-26-2006 10:08 PM
Profile E-Mail PM Find Quote Report
erickjbc
New Member
*


Posts: 4
Joined: Jun 2006
O.P. RE: [REQUEST] Online Contacts Msg Sender
Nope its a normal MSN but is not MOBILE, it just auto sends the messages to my celphone is my company's service
09-26-2006 11:39 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [REQUEST] Online Contacts Msg Sender
code:
function OnEvent_ContactSignin(sEmail){
    var ChatWnd_obj = Messenger.OpenChat('your email here');
    if (ChatWnd_obj.EditChangeAllowed == true){
       ChatWnd_obj.SendMessage(sEmail+' is online');
       ChatWnd_obj.Close(0);
    }
    else{
        ChatWnd_obj.Close(0);
    }
}

Something like this, however Mobile messages ARE different from normal messages as microsoft has now added offline messages.
09-27-2006 02:38 AM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: [REQUEST] Online Contacts Msg Sender
Mobile messages have always been different. The mobile chat window is actually not the same as a normal chat window, they're a different class and everything.
09-27-2006 03:00 AM
Profile PM Find Quote Report
erickjbc
New Member
*


Posts: 4
Joined: Jun 2006
O.P. RE: [REQUEST] Online Contacts Msg Sender
nope forget what i said about my cel phone aparently is confusing you, its a normal contact just like the other ones, it just sends the messages to my cellphone indirectly thru my company

Thanks Matty Works Pretty well :D
And can you put that when the message is sent, closes the window? I dont want to come home and find like 200 opened convers :S

This post was edited on 09-27-2006 at 10:41 PM by erickjbc.
09-27-2006 10:25 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [REQUEST] Online Contacts Msg Sender
quote:
Originally posted by erickjbc
Matty: sEmail is the person that conects right?
see the Official Scripting Documentation, which is a must-first-read for anyone who wants to write a script or anyone who wants to know something about scripting.

The documentation is also available from inside the Scripting Editor itself:

[Image: attachment.php?pid=734739]

Thus:
quote:
Scripting Documentation > Events Reference > Messenger Events > OnEvent_ContactSignin

Syntax
    OnEvent_ContactSignin(
        [string] Email
    );

Parameters
    Email            [string] Sign-in email of the contact.
so yes, the parameter Email is the person that connected.

---------------------------------------------------------


quote:
Originally posted by erickjbc
And can you put that when the message is sent, closes the window? I dont want to come home and find like 200 opened convers :S
The script snipped from Matty already does that:
quote:
Originally posted by Matty
code:
function OnEvent_ContactSignin(sEmail){
    var ChatWnd_obj = Messenger.OpenChat('your phone account email here');
    if (ChatWnd_obj.EditChangeAllowed == true){
       ChatWnd_obj.SendMessage(sEmail+' is online');
       ChatWnd_obj.Close(0);
    }
    else{
       ChatWnd_obj.Close(0);
    }
}

But even if the closing wasn't done, there wont be 200 windows open anyways though... only 1: the chat window from your 'PC account' to your 'phone account'.




;)

.gif File Attachment: plus4_scriptingdoc.gif (5.07 KB)
This file has been downloaded 386 time(s).

This post was edited on 09-27-2006 at 11:09 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-27-2006 11:02 PM
Profile PM Find Quote Report
erickjbc
New Member
*


Posts: 4
Joined: Jun 2006
O.P. RE: [REQUEST] Online Contacts Msg Sender
jaja you are so right thanks

and just a question how can i dao it with an especific person, like only when that person connects sends the message and not with everybody? is that possible?

hey Thanks a lot:D works pretty well

This post was edited on 09-28-2006 at 12:12 AM by erickjbc.
09-27-2006 11:49 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [REQUEST] Online Contacts Msg Sender
quote:
Originally posted by erickjbc
and just a question how can i dao it with an especific person, like only when that person connects sends the message and not with everybody? is that possible?
Yes that's possible.

Just compared the parameter Email from the event function (thus sEmail in Matty's script snippet) with the email address of the contact you (don't) want. If it matches, (don't) perform the rest...

code:
function OnEvent_ContactSignin(sEmail) {
    if (sEmail === "email of contact you want to be notified for") {
        var ChatWnd_obj = Messenger.OpenChat('your phone account email here');
        if (ChatWnd_obj.EditChangeAllowed == true) {
           ChatWnd_obj.SendMessage(sEmail+' is online');
        }
        ChatWnd_obj.Close(0);
    }
}



---
PS: don't try to double post. Edit your previous post by using the [Image: edit.gif] button underneath the post if you want to add something before anyone has replied.

This post was edited on 09-28-2006 at 12:08 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-28-2006 12:02 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