What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Send SMS text on contact sign in

Send SMS text on contact sign in
Author: Message:
ProtoZoa
New Member
*


Posts: 7
Joined: Jul 2009
O.P. Send SMS text on contact sign in
The overall goal for this script is to send MY phone a text message when a specified contact logs on. In the case of my script it is "skyman_416 at live dotcom"

This script works up until it tries to send the message. The person signs in, a new window for that person gets created, and it tries to send the message. Everything works correctly, but when the new window is created,
code:
Messenger.OpenChat(TxtToContact).SendMessage(Email + LogOnMessage);
It opens a regular contact window, when it needs to open a mobile conversation.

This is what I get...
[Image: SendSMS.png]
If I click the "Start a mobile conversation" button and then type something, it will send it to my phone.

Here is the code I have...
code:
var LogOnMessage = " logged on!";
var LogOffMessage = " logged off.";

function OnEvent_Initialize(MessengerStart)
{
    Debug.Trace("**********Messenger Initialized**********");
}
//*****************************************************************
function OnEvent_ContactSignin(Email) {
    var SendToContact = "skyman_416@live.com";
    var TxtToContact = "+0123456789";
    Debug.Trace("[Sign-in] Contact Sign-in [" + Email + "]");
    if (Email !== Messenger.MyEmail) {
        Debug.Trace("[Sign-in] Not my current email");
        Debug.Trace("[Sign-in] [" + Email + "]");
        if (Email == "skyman_416@live.com") {
            if (Messenger.MyStatus == 7) {
                Messenger.OpenChat(TxtToContact).SendMessage(Email + LogOnMessage);
                Debug.Trace("[Sign-in] Message (" + Email + LogOnMessage + ") sent to " + TxtToContact);
            }
        }
    }
}
//*****************************************************************
function OnEvent_Uninitialize(MessengerExit)
{
    Debug.Trace("**********Messenger Uninitialized**********");
}

Is there a way to make this work, or should I be looking for a way to send an email to my phone? (AT&T users would be: 0123456789@txt.att.net)

Thanks for your help!

This post was edited on 08-19-2009 at 03:54 AM by Chrono.
07-12-2009 12:10 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Send SMS text on contact sign in - by ProtoZoa on 07-12-2009 at 12:10 PM
RE: Send SMS text on contact sign in - by warmth on 07-12-2009 at 07:06 PM
RE: Send SMS text on contact sign in - by ProtoZoa on 07-20-2009 at 05:58 AM
RE: Send SMS text on contact sign in - by piggieshorts on 08-09-2009 at 05:47 AM
RE: Send SMS text on contact sign in - by CookieRevised on 08-12-2009 at 06:38 AM
RE: Send SMS text on contact sign in - by cRuNcHeR on 08-18-2009 at 03:16 PM
RE: Send SMS text on contact sign in - by matty on 08-18-2009 at 05:46 PM
RE: RE: Send SMS text on contact sign in - by CookieRevised on 08-19-2009 at 01:52 AM
RE: Send SMS text on contact sign in - by cRuNcHeR on 08-18-2009 at 06:15 PM
RE: Send SMS text on contact sign in - by cRuNcHeR on 08-19-2009 at 02:31 AM
RE: Send SMS text on contact sign in - by CookieRevised on 08-19-2009 at 03:18 AM
RE: RE: Send SMS text on contact sign in - by cRuNcHeR on 08-19-2009 at 04:30 AM
RE: Send SMS text on contact sign in - by ProtoZoa on 05-24-2010 at 12:49 AM
RE: Send SMS text on contact sign in - by whiz on 06-01-2010 at 10:34 AM
RE: Send SMS text on contact sign in - by ProtoZoa on 06-03-2010 at 07:16 AM
RE: Send SMS text on contact sign in - by CookieRevised on 06-03-2010 at 02:43 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