Jump to content

[SOLVED] Familiar with MSN Plus JS?


Cetanu

Recommended Posts

Is anyone here familiar with coding for Messenger Live Plus! ? I am coding some extra little features for my MSN live, and I've run into some problems with the JS. This is probably because I know nothing about JavaScript and I've just been learning as I go.

 

 

If anyone has some experience your help is appreciated. :)

I want to send messages automatically if a given instance is true, but to do this I need to make a ChatWnd object (reference for ChatWnd). I dunno how to MAKE an object of anything other than the two global objects, Messenger and MsgPlus.

 

Here is the entire reference if anyone wants to look it over so they can help maybe.... http://mpscripts.net/docs/ref-objects.php

 

 

Also, here is the reference for SendMessage (to send an automatic message):

http://mpscripts.net/docs/ref-chatwnd-sendmessage.php

 

Here's the code that I have so far, it all works and stuff, I guess it's just for reference...

function OnEvent_Signin(Email){ 
      
      if(Email == "predhead9@yahoo.com"){ 
      
      var Message = "Hello there, "+Messenger.MyName+"!"; 
        Message = MsgPlus.RemoveFormatCodes(Message);
       MsgPlus.DisplayToast("Welcome", Message); 
      } 
} 
function OnEvent_ContactSignin(Email){ 
if(Email == "blackwings281@yahoo.com"){ 
   Messenger.OpenChat("blackwings281@yahoo.com"); 
   var Display = "Chat Started.";
   MsgPlus.DisplayToast("Notice!", Display); 
}
}

function OnEvent_ContactSignin(Email){ 
if(Email == "bat.kid@hotmail.co.uk"){ 
   Messenger.OpenChat("bat.kid@hotmail.co.uk"); 
   var Display = "Chat Started.";
   MsgPlus.DisplayToast("Notice!", Display); 
}
}

function OnEvent_Signout(Email){ 
var Message = "Bye byez."; 
MsgPlus.DisplayToast("Bye!", Message); 
} 

 

 

 

THANKS!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.