Shoutbox

How to check your status? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: How to check your status? (/showthread.php?tid=86077)

How to check your status? by kjekse on 09-21-2008 at 04:02 PM

Hello..
I am very new to this.. But i am gonna make a script that plays a sound file when you change status(one for away,one for busy and so on) .. how to check what status you change to?


RE: How to check your status? by djdannyp on 09-21-2008 at 04:20 PM

code:
if Messenger.MyStatus = STATUS_ONLINE;

etc, replacing "online" with the desired status
RE: RE: How to check your status? by kjekse on 09-21-2008 at 04:28 PM

quote:
Originally posted by djdannyp
code:
if Messenger.MyStatus = STATUS_ONLINE;

etc, replacing "online" with the desired status

Thank YOU:D
RE: How to check your status? by Spunky on 09-21-2008 at 04:43 PM

Don't use the equals sign (=)! That assigns a variable a value... You have to use == or === (=== is for type and value comparison, which is quicker)


RE: How to check your status? by kjekse on 09-21-2008 at 04:55 PM

But.. How to check if the user/i Change my status ?


RE: How to check your status? by Spunky on 09-22-2008 at 01:24 PM

There are built in events for these:

code:
OnEvent_ContactStatusChange(NewStatus)
OnEvent_MyStatusChange(Email, NewStatus)


The Email argument can be used to get a contact object and check the contacts display name etc. New Status will be an enumeration of the new status...

quote:
NewStatus
[enum] New status of the user, represented by a number taken from the following enumeration:


STATUS_INVISIBLE (2)  - Appear offlone (Not available in ContactStatusChange
STATUS_ONLINE (3)  -  Online
STATUS_BUSY (4)  -  Busy
STATUS_BRB (5)  -  Be Right Back
STATUS_IDLE (6)  -  Idle / Away (Depending on your own WLM settings)
STATUS_AWAY (7)  -  Away
STATUS_INCALL (8)  -  On The Phone
STATUS_OUTLUNCH (9)  -  Out to Lunch