
[help] when someone online i will change my status automatic - 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: [help] when someone online i will change my status automatic (/showthread.php?tid=74676)
[help] when someone online i will change my status automatic by atkinS on 05-25-2007 at 06:04 AM
when someone online i will change my status automatic, any scripts can do that?
RE: [help] when someone online i will change my status automatic by Volv on 05-25-2007 at 07:18 AM
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.
RE: RE: [help] when someone online i will change my status automatic by atkinS on 05-27-2007 at 07:36 AM
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... ^^
|