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