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 == "[email protected]"){ 
      
      var Message = "Hello there, "+Messenger.MyName+"!"; 
        Message = MsgPlus.RemoveFormatCodes(Message);
       MsgPlus.DisplayToast("Welcome", Message); 
      } 
} 
function OnEvent_ContactSignin(Email){ 
if(Email == "[email protected]"){ 
   Messenger.OpenChat("[email protected]"); 
   var Display = "Chat Started.";
   MsgPlus.DisplayToast("Notice!", Display); 
}
}

function OnEvent_ContactSignin(Email){ 
if(Email == "[email protected]"){ 
   Messenger.OpenChat("[email protected]"); 
   var Display = "Chat Started.";
   MsgPlus.DisplayToast("Notice!", Display); 
}
}

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

 

 

 

THANKS!

Link to comment
https://forums.phpfreaks.com/topic/174321-solved-familiar-with-msn-plus-js/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.