What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How to check your status?

How to check your status?
Author: Message:
kjekse
New Member
*


Posts: 3
28 / Male / Flag
Joined: Sep 2008
O.P. Undecided  How to check your status?
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?
09-21-2008 04:02 PM
Profile E-Mail PM Find Quote Report
djdannyp
Elite Member
*****

Avatar
Danny <3 Sarah

Posts: 3546
Reputation: 31
38 / Male / Flag
Joined: Mar 2006
RE: How to check your status?
code:
if Messenger.MyStatus = STATUS_ONLINE;

etc, replacing "online" with the desired status
[Image: 1ftt0hpk-signature.png]
AutoStatus Script || Facebook Status Script
5429 days, 21 hours, 55 minutes, 26 seconds ago
09-21-2008 04:20 PM
Profile E-Mail PM Find Quote Report
kjekse
New Member
*


Posts: 3
28 / Male / Flag
Joined: Sep 2008
O.P. RE: RE: How to check your status?
quote:
Originally posted by djdannyp
code:
if Messenger.MyStatus = STATUS_ONLINE;

etc, replacing "online" with the desired status

Thank YOU:D
09-21-2008 04:28 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: How to check your status?
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)
<Eljay> "Problems encountered: shit blew up" :zippy:
09-21-2008 04:43 PM
Profile PM Find Quote Report
kjekse
New Member
*


Posts: 3
28 / Male / Flag
Joined: Sep 2008
O.P. RE: How to check your status?
But.. How to check if the user/i Change my status ?
09-21-2008 04:55 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: How to check your status?
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



This post was edited on 09-22-2008 at 01:24 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
09-22-2008 01:24 PM
Profile 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