What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help] when someone online i will change my status automatic

[help] when someone online i will change my status automatic
Author: Message:
atkinS
New Member
*


Posts: 8
Joined: Dec 2006
O.P. [help] when someone online i will change my status automatic
when someone online i will change my status automatic, any scripts can do that?
05-25-2007 06:04 AM
Profile E-Mail PM Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: [help] when someone online i will change my status automatic
The following should do the job:
code:
//Declare status constants
var statusAppearOffline = 2;
var statusOnline = 3;
var statusBusy = 4;
var statusBeRightBack = 5;
var statusAway = 7;
var statusInACall = 8;
var statusOutToLunch = 9;

function OnEvent_ContactSignin(strEmail) {

    switch (strEmail) {
        //Set my status to 'Appear Offline' when Bob comes online
        case "bob@hotmail.com":
            Messenger.MyStatus = statusAppearOffline;
            return;

        //Set my status to 'Busy' when Jane comes online
        case "jane@hotmail.com":
            Messenger.MyStatus = statusBusy;
            return;

    }

}

IMPORTANT: This will only work when you're on Messenger and the contact signs in, not if they're already online when you sign in.

EDIT: Fixed up something in the code thanks to CookieRevised.

This post was edited on 05-25-2007 at 11:19 AM by Volv.
05-25-2007 07:18 AM
Profile PM Find Quote Report
atkinS
New Member
*


Posts: 8
Joined: Dec 2006
O.P. RE: RE: [help] when someone online i will change my status automatic
quote:
Originally posted by Volv
The following should do the job:
code:
//Declare status constants
var statusAppearOffline = 2;
var statusOnline = 3;
var statusBusy = 4;
var statusBeRightBack = 5;
var statusAway = 7;
var statusInACall = 8;
var statusOutToLunch = 9;

function OnEvent_ContactSignin(strEmail) {

    switch (strEmail) {
        //Set my status to 'Appear Offline' when Bob comes online
        case "bob@hotmail.com":
            Messenger.MyStatus = statusAppearOffline;
            return;

        //Set my status to 'Busy' when Jane comes online
        case "jane@hotmail.com":
            Messenger.MyStatus = statusBusy;
            return;

    }

}

IMPORTANT: This will only work when you're on Messenger and the contact signs in, not if they're already online when you sign in.

EDIT: Fixed up something in the code thanks to CookieRevised.

THX... ^^
05-27-2007 07:36 AM
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