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:
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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[help] when someone online i will change my status automatic - by atkinS on 05-25-2007 at 06:04 AM
RE: [help] when someone online i will change my status automatic - by Volv on 05-25-2007 at 07:18 AM
RE: RE: [help] when someone online i will change my status automatic - by atkinS on 05-27-2007 at 07:36 AM


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