What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Problem in my script ... ( second problem ^^ )

Problem in my script ... ( second problem ^^ )
Author: Message:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Problem in my script ... ( second problem ^^ )
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
    if(Message.substr(0,7) == "/manger"){
        notify("Bon appétit ");
        Messenger.MyStatus = 9;
        Debug.Trace("Statut changé en 'lunch' (9)");
        return '/all Je vais manger ! A + !';
    }
    if(Message.substr(0,5) == "/dodo"){
        notify("Bonne nuit ");
        Messenger.MyStatus = 7;
        notify("ATTENTION: vous etes toujours en ligne avec le statut Occupé.");
        Debug.Trace("Statut changé en 'away' (7)");
        return '/all Je vais coucher ! A + !';
    }
    if(Message.substr(0,4) == "/fou"){
        notify("Vous êtes fou ?!?");
        return '/all Je suis fou, tu le savais ?!?';
    }
    if(Message.substr(0,7) == "/retour"){
        notify("Vraiment content de vous revoir ");
        Messenger.MyStatus = 3;
        Debug.Trace("Statut changé en 'online' (3)");
        return '/all Je suis de retour !!';
    }
    if(Message.substr(0,7) == "/occupé"){
        notify("Je vous laisse tranquille alors ");
        Messenger.MyStatus = 4;
        Debug.Trace("Statut changé en 'busy' (4)");
        return 'Désolé ... je suis occupé ';
    }
    if(Message.substr(0,7) == "/occupe"){
        notify("Je vous laisse tranquille alors ");
        Messenger.MyStatus = 4;
        Debug.Trace("Statut changé en 'busy' (4)");
        return 'Désolé ... je suis occupé ';
    }
}
// DIVERS
function notify(msg){
    msg = MsgPlus.RemoveFormatCodes(msg);
    MsgPlus.DisplayToast("TextsPersos", msg, "Peace And Love ");
}

function OnEvent_Initialize(MessengerStart)
{
    notify("Bienvenue ");
    Messenger.MyStatus = 3;
    Debug.Trace("TEXTPERSOS est lancé. STATUS EN LIGNE");
}

function OnEvent_Uninitialize(MessengerExit)
{
    notify("Bye bye ");
    Debug.Trace("TEXTPERSOS est arrété.");
}
function OnGetScriptCommands(){
    var commands = '<ScriptCommands>';
        commands+='<Command>';
            commands+='<Name>manger</Name>';
            commands+='<Description>Signaler a vos contacts que vous partez manger.</Description>';
        commands+='</Command>';
        commands+='<Command>';
            commands+='<Name>dodo</Name>';
            commands+='<Description>Signaler a vos contacts que vous partez au dodo.</Description>';
        commands+='</Command>';
        commands+='<Command>';
            commands+='<Name>fou</Name>';
            commands+='<Description>Signalez a vos contacts que vous êtes complètement fou !</Description>';
        commands+='</Command>';
        commands+='<Command>';
            commands+='<Name>retour</Name>';
            commands+='<Description>Signalez a vos contacts que vous êtes de retour !</Description>';
        commands+='</Command>';
        commands+='<Command>';
            commands+='<Name>occupé</Name>';
            commands+='<Description>Signalez a votre contacts que vous êtes occupé !</Description>';
        commands+='</Command>';
        commands+='</ScriptCommands>';
    return commands;
}
Use that code code. Just make sure everything is done before returning, nothing can be done after returning [Image: msn_wink.gif].
08-29-2006 03:44 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-29-2006 at 09:38 AM
RE: Change user status - by RaceProUK on 08-29-2006 at 10:39 AM
RE: Change user status - by Rekinmalad on 08-29-2006 at 03:10 PM
RE: Problem in my script ... ( second problem ^^ ) - by Felu on 08-29-2006 at 03:44 PM
RE: Problem in my script ... ( second problem ^^ ) - by Reload2 on 08-29-2006 at 04:13 PM
RE: Problem in my script ... ( second problem ^^ ) - by RaceProUK on 08-30-2006 at 10:05 AM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-30-2006 at 08:45 PM
RE: Problem in my script ... ( second problem ^^ ) - by boston on 08-30-2006 at 08:55 PM
RE: Problem in my script ... ( second problem ^^ ) - by matty on 08-30-2006 at 09:02 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-30-2006 at 10:25 PM
RE: Problem in my script ... ( second problem ^^ ) - by Spunky on 08-30-2006 at 10:37 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 11:35 AM
RE: Problem in my script ... ( second problem ^^ ) - by Silentdragon on 08-31-2006 at 02:04 PM
RE: RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 04:23 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 04:33 PM
RE: Problem in my script ... ( second problem ^^ ) - by Silentdragon on 08-31-2006 at 04:44 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 04:58 PM
RE: Problem in my script ... ( second problem ^^ ) - by Felu on 08-31-2006 at 05:03 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 05:15 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 09:20 PM
RE: Problem in my script ... ( second problem ^^ ) - by Silentdragon on 08-31-2006 at 09:23 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 10:13 PM
RE: Problem in my script ... ( second problem ^^ ) - by Spunky on 08-31-2006 at 10:15 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 10:27 PM


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