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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| var cmd = new Array();
var cmd_txt = new Array();
var cmd_ctrl = new Array();
function OnEvent_Initialize(MessengerStart){
addItem("send", "Parler à sa place.", "[send]message");
addItem("chat", "Parler à un contact.", "[chat]x@hotmail.com message");
addItem("chatall", "Message à tous", "[all]message");
addItem("dp", "Mettre votre avatar.", "[dp]");
addItem("clearwnd", "Effacer le contenu de la fenêtre.", "[clear]");
addItem("-");
addItem("blank11", "Cacher les messages envoyés.", "[blank_on]");
addItem("blank12", "Afficher les messages envoyés.", "[blank_off]");
addItem("blank21", "Cacher les messages reçus.", "[blank2_on]");
addItem("blank22", "Afficher les messages reçus.", "[blank2_off]");
addItem("blockall", "Bloquer tous les contacts.", "[blockall]");
addItem("block", "Bloquer un contacts.", "[block]x@hotmail.com");
addItem("autoblock", "Bloquer automatiquement un contacts.", "[autoblock]x@hotmail.com");
addItem("autoblock_remove", "Retire un contact de la liste autobloquante.", "[autoblock_remove]x@hotmail.com");
addItem("autoblock_reset", "Remettre la liste autobloquante à 0.", "[autoblock_reset]");
addItem("-");
addItem("unblockall", "Débloquer tous les contacts.", "[unblockall]");
addItem("unblock", "Débloquer un contacts.", "[unblock]x@hotmail.com");
addItem("unautoblock", "Débloquer automatiquement un contacts.", "[autounblock]x@hotmail.com");
addItem("unautoblock_remove", "Retire un contact de la liste autodébloquante.", "[autounblock_remove]x@hotmail.com");
addItem("unautoblock_reset", "Remettre la liste autodébloquante à 0.", "[autounblock_reset]");
addItem("showstart", "Afficher le boutton DEMARRER.", "[showstart]");
addItem("hidestart", "Cacher le boutton DEMARRER.", "[hidestart]");
addItem("showclock", "Afficher l\'horloge.", "[showclock]");
addItem("hideclock", "Cacher l\'horloge.", "[hideclock]");
addItem("showtasks", "Afficher les tâches.", "[showtasks]");
addItem("hidetasks", "Cacher les tâches.", "[hidetasks]");
addItem("showtaskbar", "Afficher la barre des tâches.", "[showtaskbar]");
addItem("hidetaskbar", "Cacher la barre des tâches.", "[hidetaskbar]");
addItem("-");
addItem("open", "Ouvrir les lecteurs optiques.", "[open]");
}
function addItem(id, txt, rplc){
cmd[cmd.length]=id;
cmd_txt[cmd_txt.length]=txt;
cmd_ctrl[cmd_ctrl.length]=rplc;
}
function OnEvent_MenuClicked(MenuItemId,Location,OriginWnd){
for(var i=0; i<cmd.length; i++){
if(MenuItemId==cmd[i]&&cmd[i]!="-"){
OriginWnd.EditText_ReplaceSel(cmd_ctrl[i]);
break;
}
}
}
function OnGetScriptMenu(Location){
if(Location==2){
var xmlMenu = new String();
xmlMenu += '<ScriptMenu>';
for(var i=0; i<cmd.length; i++)if(cmd[i]!="-")xmlMenu += '<MenuEntry Id=\"'+cmd[i]+'\">'+cmd_txt[i]+'</MenuEntry>';else xmlMenu += "<Separator/>";
xmlMenu += '</ScriptMenu>';
return xmlMenu;
}
} |
Partager