Cetanu Posted September 15, 2009 Share Posted September 15, 2009 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.