What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » im having troble with my script

im having troble with my script
Author: Message:
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: im having troble with my script
Signout(); should be Messenger.Signout();

code:
SendMessage('/all');
SendMessage('/close');
You don't actually need to do these, as the Signout() function does this automatically. However, the reason it isnt working is because SendMessage is a function of a ChatWnd, so using your code it should be ChatWnd.SendMessage('Message to send').

Also, instead of multiple if statements, use a select case. The following code seems to do what you want:

code:
function notify(msg){
    msg = MsgPlus.RemoveFormatCodes(msg);
    MsgPlus.DisplayToast('brb', msg, '');
}

function OnEvent_ChatWndSendMessage(ChatWnd,Message){
    switch (Message){
        case 'brb':
            notify('locking msn.');
            MsgPlus.LockMessenger('True');   
            return '';
        case '/logout':
            notify('login out.');
            Messenger.Signout();
    }
}


Hope this helps :)
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
08-06-2007 05:53 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
im having troble with my script - by killa on 08-06-2007 at 05:23 PM
RE: im having troble with my script - by pollolibredegrasa on 08-06-2007 at 05:53 PM
RE: im having troble with my script - by killa on 08-07-2007 at 01:40 PM
RE: im having troble with my script - by Volv on 08-07-2007 at 01:55 PM
RE: im having troble with my script - by killa on 08-08-2007 at 10:00 AM
RE: im having troble with my script - by Volv on 08-08-2007 at 10:40 AM
RE: im having troble with my script - by LifelesS on 08-08-2007 at 10:51 AM
RE: im having troble with my script - by matty on 08-08-2007 at 12:47 PM
RE: im having troble with my script - by Volv on 08-08-2007 at 01:01 PM
RE: im having troble with my script - by Matti on 08-08-2007 at 03:19 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