What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request] Last status timer

Pages: (3): « First « 1 2 [ 3 ] Last »
[request] Last status timer
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [request] Last status timer
quote:
Originally posted by gdumitresco
Guys, I'm going to test the "else if" method back, the switch method it's no bringing the right status PSM, even online it brings the wrong message... strange! Does it need the "break" stuff?
Yes, it needs the break stuff. The SWITCH statement is a lot more effecient and shorter than a whole bunch of IF THEN ELSEs.

code:
function OnEvent_MyStatusChange(nNewStatus) {
    switch (nNewStatus) {
        case 3: Messenger.MyPersonalMessage = oPersonalMessage; break;
        case 6: Messenger.MyPersonalMessage = "Estou ausente desde "+GetTime(); break;
        case 4: Messenger.MyPersonalMessage = "Estou ocupado desde "+GetTime(); break;
        case 5: Messenger.MyPersonalMessage = "Saí às "+GetTime()+" mas volto logo!"; break;
        case 7: Messenger.MyPersonalMessage = "Estou ausente desde "+GetTime(); break;
        case 8: Messenger.MyPersonalMessage = "Estou em uma ligação desde "+GetTime(); break;
        case 9: Messenger.MyPersonalMessage = "Estou almoçando desde "+GetTime(); break;
    }
}


;)

This post was edited on 07-14-2007 at 02:26 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-14-2007 02:19 PM
Profile PM Find Quote Report
Pages: (3): « First « 1 2 [ 3 ] 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