code://global variables:
var fsObj = new ActiveXObject("Scripting.FileSystemObject");
var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\defwelcomemsg.txt', 1);
var DefWelcomemsg = fileObj.ReadAll();
fileObj.Close();
var fsObj2 = new ActiveXObject("Scripting.FileSystemObject");
var fileObj2 = fsObj2.OpenTextFile(MsgPlus.ScriptFilesPath + '\\defgoodbyemsg.txt', 1);
var DefGoodbyemsg = fileObj2.ReadAll();
fileObj2.Close();
//functions
function OnEvent_Initialize(MessengerStart)
{
}
function OnGetScriptMenu(Location)
{
var ScriptMenu ="<ScriptMenu>";
ScriptMenu +="<MenuEntry Id=\"window\">Polite Preferences</MenuEntry>";
ScriptMenu +="</ScriptMenu>";
return ScriptMenu;
}
function OnEvent_MenuClicked(MenuId, Location, Wnd)
{
switch(MenuId)
{
case "window":