Simple Messenger Plus! Live script

Javascript

Public Domain

Tells you hello on sign-in, goodbye on sign-out, and use the messenger initialize section for 'reminders'

Download (right click, save as, rename as appropriate)

Embed

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function OnEvent_Initialize(MessengerStart)
{
		//var Message = "Plan world domination"; //Use this for reminders such as "open outlook". Uncomment by removing //
		//MsgPlus.DisplayToast("", Message);
}

function OnEvent_Uninitialize(MessengerExit)
{
}

function OnEvent_Signin(Email)
{
		if(Email == "youremail@domain.com") //insert your MSN email here
		{
			var Message = "Hello Master";
			MsgPlus.DisplayToast("", Message); // show the 'toast' (a popup) with the message
		}
		else
		{
			var Message = "Hello " + Messenger.MyName; // Messenger.MyName is your display name
			Message = MsgPlus.RemoveFormatCodes(Message); // Parse message variable and remove unsupported formatting marks, required.
			MsgPlus.DisplayToast("", Message);
		}
		
}

function OnEvent_Signout(Email)
{
		var Message = "Goodbye " + Messenger.MyName;
		Message = MsgPlus.RemoveFormatCodes(Message);
		MsgPlus.DisplayToast("", Message);
		
}