ruN.
New Member
Posts: 1
Joined: Aug 2006
|
RE: emoticones in nickname
Hi all
i wanted the same thing too,
i have a PMS script tht does it and all my friends are seeing this logo too, some of them dnt have messenger plus and some of them have the old msn messenger.
Script:
code: var INIFILE = MsgPlus.ScriptFilesPath + "\\conf.ini";
var icono = "Music";
/*
By . f e l i p E
http://mypropiocielo.space.msn.com
greetings from Los Mochis, Mexico
=========================
thanks..
kocoae .. http://kocoae.spaces.msn.com
English pack Translated by aNILEator
*/
function OnGetScriptMenu(nLocation){
var LANG = new ActiveXObject('felipe.ini').LeerIni(INIFILE,"langs","lang","English");
var ScriptMenu = "<ScriptMenu>";
ScriptMenu += "<MenuEntry Id=\"MnuAuthor1\">. f e l i p E</MenuEntry>";
ScriptMenu += "<MenuEntry Id=\"MnuAuthor2\">k o c o a e</MenuEntry>";
ScriptMenu += "<Separator/>";
var x = new ActiveXObject('felipe.ini').LeerIni(INIFILE,LANG,"mnuxPSM","Set xPSM");
ScriptMenu += "<MenuEntry Id=\"MnuXPSM\">" + x + "</MenuEntry>";
ScriptMenu += "<Separator/>";
var x = new ActiveXObject('felipe.ini').LeerIni(INIFILE,LANG,"mnuAbout","About xPSM...");
ScriptMenu += "<MenuEntry Id=\"MnuCreditos\">" + x + "</MenuEntry>";
ScriptMenu += "<Separator/>";
var x = new ActiveXObject('felipe.ini').LeerIni(INIFILE,LANG,"mnuLang","Language");
ScriptMenu +=" <SubMenu Label='" + x + "'>";
var x = new ActiveXObject('felipe.ini').LeerIni(INIFILE,"langs","1","Unknow");
var xx="Unknow";
var lng=1;
do {
xx = new ActiveXObject('felipe.ini').LeerIni(INIFILE,"langs", lng,"Unknow");
if ( xx == "Unknow" ) break;
ScriptMenu += " <MenuEntry Id='LNG-"+xx+"'>"+xx+"</MenuEntry>";
lng++;
} while ( x != "Unknow" );
ScriptMenu +=" </SubMenu>";
ScriptMenu += "</ScriptMenu>";
return ScriptMenu;
}
function OnEvent_MenuClicked(sMenuId,nLocation,iOriginWnd){
var LANG = new ActiveXObject('felipe.ini').LeerIni(INIFILE,"langs","lang","English");
switch (sMenuId)
{
case "MnuAuthor1" :
if (nLocation ==2 )
{ var x = new ActiveXObject('felipe.ini').LeerIni(INIFILE,LANG,"author1","http://mypropiocielo.spaces.msn.com [xPSM v1.1]"); iOriginWnd.SendMessage; }
else
Abrir('http://mypropiocielo.spaces.msn.com');
break;
case "MnuAuthor2":
if (nLocation ==2 )
{ var x = new ActiveXObject('felipe.ini').LeerIni(INIFILE,LANG,"author2","http://kocoae.spaces.msn.com [xPSM v1.1 ]"); iOriginWnd.SendMessage; }
else
Abrir('http://kocoae.spaces.msn.com');
break;
case "MnuCreditos":
var LANG = new ActiveXObject('felipe.ini').LeerIni(INIFILE,"langs","lang","English");
var wnd = MsgPlus.CreateWnd(LANG+'.xml','Creditos');
break;
case "MnuXPSM":
if ( MsgPlus.RemoveFormatCodes(Messenger.MyCurrentMedia) == "" )
{
var MSG1 = new ActiveXObject('felipe.ini').LeerIni(INIFILE,LANG,"msg1","For xPSM to work please enable the 'What I am listening to' feature");
MsgPlus.DisplayToast('',MSG1,'notify.mp3');
}
var LANG = new ActiveXObject('felipe.ini').LeerIni(INIFILE,"langs","lang","English");
var wnd = MsgPlus.CreateWnd(LANG+'.xml','WndxPSM');
wnd.Button_SetCheckState("Music","True");
default:
if (sMenuId.substring(0,4) == "LNG-") var SAVE = new ActiveXObject("felipe.ini").GuardarIni(INIFILE,"langs","lang",sMenuId.substring(4));
/*
{
var WSHShell = new ActiveXObject("WScript.Shell");
var intDoIt;
intDoIt = WSHShell.Popup("Cambiar el idioma a\n"+ sMenuId.substring(4), 0, "Confirmación --- xPSM", 65 );
if ( intDoIt == 1) var SAVE = new ActiveXObject("felipe.ini").GuardarIni(INIFILE,"langs","lang",sMenuId.substring(4));
}
*/
break;
}
}
function OnCreditosEvent_CtrlClicked(Wnd, ControlId){
switch (ControlId)
{
case "BtnClose" :
Animar(Wnd);
Wnd.Close(1);
break;
case "kocoae" : Abrir('http://kocoae.spaces.msn.com'); break;
case "luisfernando" : Abrir('http://drugged8.spaces.msn.com'); break;
case "davinxi" : Abrir("http://davinxi.spaces.msn.com"); break;
case "aNILEator" : Abrir('http://fukafly.zerogen.co.uk/site/'); break;
}
}
function OnWndxPSMEvent_CtrlClicked(Wnd, ControlId)
{
switch (ControlId)
{
case "Aceptar":
new ActiveXObject('felipe.sarabia').SetMusicInfo('', '', '', icono, '', Wnd.GetControlText('valor'));
Animar(Wnd);
break;
case "Music": icono = "Music"; break;
case "Games": icono = "Games"; break;
case "Office": icono = "Office"; break;
}
}
function Animar(pPlusWnd){
Interop.Call("User32", "AnimateWindow", pPlusWnd.Handle, 180, "0x10000" | "0x80000");
FreeDll("User32.dll");
}
function Abrir(URL){
new ActiveXObject('WScript.Shell').Run(URL);
}
function parseCommands(sMessage,iOriginWnd){
if (sMessage.charAt(0) == '/'){
if(sMessage.charAt(1) == '/'){
return sMessage;
} else {
var firstSpace = sMessage.search(' ');
if(firstSpace == -1){
var command = sMessage.toLowerCase().substr(1);
var params = '';
} else {
var command = sMessage.toLowerCase().substr(1, firstSpace-1);
var params = sMessage.toLowerCase().substr(firstSpace+1);
}
if(params != "") { Debug.Trace("The command \"" + command + "\" with the parameters \"" + params + "\" has been parsed."); }
else { Debug.Trace("The command \"" + command + "\" has been parsed."); }
switch(command) {
case 'xpsm':
var LANG = new ActiveXObject('felipe.ini').LeerIni(INIFILE,"langs","lang","English");
var wnd = MsgPlus.CreateWnd(LANG+'.xml','WndxPSM');
wnd.Button_SetCheckState("Music","True");
sMessage = "";
break;
default:
}
return sMessage;
}
}
}
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage) {
if(sMessage.charAt(0) == "/"){
return parseCommands(sMessage,ChatWnd);
}
else{
return sMessage;
}
}
function OnGetScriptCommands(){
var commands = '<ScriptCommands>';
commands+='<Command>';
commands+='<Name>xpsm</Name>';
commands+='<Description>Cambiar PSM</Description>';
commands+='<Parameters>New Message;Music</Parameters>';
commands+='</Command>';
commands+='</ScriptCommands>';
return commands;
thx for help
|
|