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

need help with my script
Author: Message:
crzymike13
New Member
*


Posts: 6
Joined: Aug 2007
O.P. Huh?  need help with my script
im new to this and im trying to make several thing on my script.
one of the things is the OnEvent_MyStatusChange, but i dont get the [enum] part of the code.

OnEvent_MyStatusChange(
    [enum] NewStatus
);


???
08-07-2007 11:43 AM
Profile E-Mail PM Find Quote Report
GNSPS
Junior Member
**

Avatar
Coding is man's best friend...

Posts: 40
31 / Male / Flag
Joined: Oct 2006
RE: need help with my script
what is it that you don't get?
Are you using it as a number?
If you are I don't understand what your problem is... :P

This post was edited on 08-07-2007 at 02:33 PM by GNSPS.
08-07-2007 02:31 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: need help with my script
quote:
Originally posted by The Scripting Documentation
Parameters
NewStatus
[enum] New status of the user, represented by a number taken from the following enumeration:

2 - Appear Offline
3 - Online
4 - Busy
5 - Be Right Back
6 - Idle
7 - Away
8 - In a Call
9 - Out to Lunch


NewStatus will equal a number representing the new status
<Eljay> "Problems encountered: shit blew up" :zippy:
08-07-2007 02:38 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: need help with my script
quote:
Originally posted by crzymike13
im new to this and im trying to make several thing on my script.
one of the things is the OnEvent_MyStatusChange, but i dont get the [enum] part of the code.

OnEvent_MyStatusChange(
    [enum] NewStatus
);


???

The enum NewStatus is quite confusing actually however that value will only contain a number that does not need to be enumerated through.

For instance this code :

code:
function OnEvent_MyStatusChanged(nNewStatus) {
    Debug.Trace(nNewStatus);
}
Will simply output a number corresponding to the status.

2 - Appear Offline
3 - Online
4 - Busy
5 - Be Right Back
6 - Idle
7 - Away
8 - In a Call
9 - Out to Lunch
08-07-2007 02:38 PM
Profile E-Mail PM Find Quote Report
« 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