What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » script command

Pages: (2): « First « 1 [ 2 ] Last »
script command
Author: Message:
lanky3
Junior Member
**


Posts: 16
Joined: Jul 2006
O.P. RE: script command
merci de ton aide, j'avais ossi fait un nouveau script:

/ vous etes une star et personne autour de vous ne s'en rends compte ?
// vous avez le cafard et vous avez besoin de compliment ?
// vous souhaitez avoir l'impression que tout le monde vous respecte ?
// master est fait pour vous !!!!!!

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var tab=new Array("tu es le meilleur !!!!", "gloire a toi !!!", "t'es une star !!!", "t'es tro un boss !!!","tu est le maitre incontesté !!!");
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var a = "bonjour Kévin";
var b = "oui maitre"
var c = "tu es le maitre"
var d = " Kévin";
var e = "bienvenue"
var f = "aurevoir"

function OnEvent_Signin(Email)
{
    if(Email == "NOM@hotmail.com")
    {
        var Message = "bonjour " + Messenger.MyName + "!";
        Message = MsgPlus.RemoveFormatCodes(Message);
        MsgPlus.DisplayToast(e,"" + Message);
    }
}

function OnEvent_Signout(Email)
{
    if(Email == "Nom@hotmail.com")
    {
        var Message = "aurevoir " + Messenger.MyName + "!" + " et à bientot...";
        Message = MsgPlus.RemoveFormatCodes(Message);
        MsgPlus.DisplayToast(f,"" + Message);
    }
}



function OnEvent_ChatWndSendMessage(ChatWnd, Message){ 
    if(Message== '/master') {
        MsgPlus.DisplayToast(a,tab[Math.floor(Math.random() * tab.length)] + d);
        MsgPlus.DisplayToast(b,tab[Math.floor(Math.random() * tab.length)]);
        MsgPlus.DisplayToast(c,tab[Math.floor(Math.random() * tab.length)]);

      return '';
    }

}

function OnGetScriptCommands () {
    var commands = "<ScriptCommands>";
    commands += "    <Command>";
    commands += "        <Name>master</Name>";
    commands += "        <Description>commande maitre</Description>";
    commands += "    </Command>";
    commands += "</ScriptCommands>";
    return commands;
}
08-18-2006 07:06 PM
Profile E-Mail PM Find Quote Report
lanky3
Junior Member
**


Posts: 16
Joined: Jul 2006
O.P. RE: script command
par contre saurais tu rajouter un son lorsque les toast sont afficher ?
08-18-2006 07:09 PM
Profile E-Mail PM Find Quote Report
KnRd_WC
Junior Member
**

Avatar
Florian PAQUET

Posts: 74
Reputation: 1
35 / Male / Flag
Joined: Aug 2006
RE: script command
Lol, tu t'appelerais pas Kévin par hasard ?? :D

Pour ajouter un son a un Toast :

code:
Titre = ""
Message = ""
Son = "\\C:\\monfichierson.wav"
MsgPlus.DisplayToast(Titre,Message,Son);


;)

This post was edited on 08-18-2006 at 08:53 PM by KnRd_WC.
08-18-2006 07:29 PM
Profile PM Web Find Quote Report
lanky3
Junior Member
**


Posts: 16
Joined: Jul 2006
O.P. RE: script command
ouiiiiiin , ji arrive pas !


function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    if(Message== '/toast'){
        Titre=""
        Message="ceci est un toast :)"
        Son="\C:\Program Files\MSN
Messenger\online.wma"
        MsgPlus.DisplayToast(Titre,Message,Son)
        return '';
    }
}





function OnGetScriptCommands (){
    var commands = "<ScriptCommands>";
    commands += "    <Command>";
    commands += "        <Name>toast</Name>";
    commands += "        <Description>...</Description>";
    commands += "    </Command>";
    commands += "</ScriptCommands>";
    return commands;
}
08-20-2006 10:38 AM
Profile E-Mail PM Find Quote Report
mickael9
Full Member
***


Posts: 117
Reputation: 3
33 / Male / Flag
Joined: Jul 2005
RE: RE: script command
quote:
Originally posted by lanky3
ouiiiiiin , ji arrive pas !


function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    if(Message== '/toast'){
        Titre=""
        Message="ceci est un toast :)"
        Son="\C:\Program Files\MSN
Messenger\online.wma"
        MsgPlus.DisplayToast(Titre,Message,Son)
        return '';
    }
}





function OnGetScriptCommands (){
    var commands = "<ScriptCommands>";
    commands += "    <Command>";
    commands += "        <Name>toast</Name>";
    commands += "        <Description>...</Description>";
    commands += "    </Command>";
    commands += "</ScriptCommands>";
    return commands;
}

Les sons WMA ne sont pas supportés par MsgPlus! Live, tu dois les convertir en mp3 par exemple

WMA sounds are not supported by MsgPlus! Live, you have to convert them to mp3 for example

And you must provide an english translation

code:
Son="C:\\Program Files\\MSN Messenger\\online.wma"; // correct syntax (but this will not work : wma)

PS: lol ton script :P

Edit : http://shoutbox.menthix.net/showthread.php?tid=64...d=710418#pid710418

This post was edited on 08-20-2006 at 11:26 AM by mickael9.
08-20-2006 11:19 AM
Profile PM Web Find Quote Report
lanky3
Junior Member
**


Posts: 16
Joined: Jul 2006
O.P. RE: script command
merci bocoup !!!!
08-20-2006 11:29 AM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On