What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Solved] problems with a status checker script...

[Solved] problems with a status checker script...
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Help] problems with a status checker script...
Messenger.MyStatus will show you the current status. OnEvent_MyStatusChange is called before the status is changed that is why the Parameter NewStatus is there. If you replace Messenger.MyStatus with just NewStatus it will be fine :).

Also a few points to note. NewStatus and Messenger.MyStatus are integers not strings... do not put quotes around the values or else it will take more computing cycles to convert it to the proper type.

Also your code could be cleaned up... a lot:
Javascript code:
function OnEvent_MyStatusChange(NewStatus) {
    var oStatus = {
                    2 : 'Appearing Offline',
                    3 : 'Online',
                    4 : 'Busy',
                    5 : 'Be Right Back',
                    6 : 'Idle',
                    7 : 'Away',
                    8 : 'In a Call',
                    9 : 'Out to Lunch'
                  }
                 
    MsgPlus.DisplayToast('', 'Status: '+oStatus[NewStatus]);
}


This post was edited on 01-21-2009 at 06:33 PM by matty.
01-21-2009 06:30 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Solved] problems with a status checker script... - by blessedguy on 01-21-2009 at 06:17 PM
RE: [Help] problems with a status checker script... - by matty on 01-21-2009 at 06:30 PM
RE: [Help] problems with a status checker script... - by blessedguy on 01-21-2009 at 06:35 PM
RE: [Help] problems with a status checker script... - by matty on 01-21-2009 at 06:37 PM
RE: [Help] problems with a status checker script... - by blessedguy on 01-21-2009 at 06:39 PM
RE: [Solved] problems with a status checker script... - by matty on 01-21-2009 at 07:44 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