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

MyStatusChange
Author: Message:
Addenorw
New Member
*


Posts: 5
Joined: Nov 2007
O.P. Huh?  MyStatusChange
I have a little problem. And as you probably will see on my problem, I am a newbe.

I trid to fix so I get a message every time I change my status. This is what I wrote:
function OnEvent_MyStatusChange(Email)
{
    if(Email == "andvibeto@msn.com") //Change for your sign-in email
    {
        var Message = "Your status have been chenged to " + Messenger.StatusChange + "!";
        Message = MsgPlus.RemoveFormatCodes(Message);
        MsgPlus.DisplayToast("", Message);
    }
}

The script debugging says everything is fine. Does anyone see what i do wrong?
11-03-2007 02:30 PM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: MyStatusChange
quote:
Originally posted by Addenorw
Messenger.StatusChange
There's no StatusChange property of the Messenger object. You probably want to use MyStatus property but it's a number and you have to convert it to string by yourself.
11-03-2007 02:38 PM
Profile PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: MyStatusChange
Err what are you doing?

OnEvent_MyStatusChange(
    [enum] NewStatus
);
No email parameter :S.

code:
function OnEvent_MyStatusChange(NewStatus){
    if(Messenger.MyEmail == "andvibeto@msn.com"){
        MsgPlus.DisplayToast("", "Your status have been changed to " + NewStatus + "!");
    }
}

Or even better

code:
function OnEvent_MyStatusChange(NewStatus){
    if(Messenger.MyEmail == "andvibeto@msn.com"){
        MsgPlus.DisplayToast("", "Your status have been changed to " + Array('', '', 'Appear Offline', 'Online', 'Busy', 'Be Right Back', 'Idle', 'Away', 'In a Call', 'Out to Lunch')[NewStatus] + "!");
    }
}

Note: I haven't tested the code but they should work. Tested now and it works. Improved the code a bit aswell

This post was edited on 11-03-2007 at 04:10 PM by Felu.
11-03-2007 02:44 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: MyStatusChange
code:
var Status = new Array("","","Appear Offline","Online","Busy","Be Right Back","Idle","Away","In a Call", "Out to Lunch");

function OnEvent_MyStatusChange(NewStatus){
    MsgPlus.DisplayToast("New Status","Your status has been changed to "+Status[NewStatus]+"!";
}

That should do what you want and it should hopefully show you where you were going wrong

EDIT: Damn, beaten :( That might work better than mine too :'(

This post was edited on 11-03-2007 at 02:47 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
11-03-2007 02:45 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: MyStatusChange
Naah... Spunky's version is easier to understand. And there's no need to use RemoveFormatCodes. :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-03-2007 03:25 PM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: MyStatusChange
quote:
Originally posted by Mattike
Naah... Spunky's version is easier to understand. And there's no need to use RemoveFormatCodes. :P
I know, i just copy pasted that part from the first post, i was in a hurry at that time. But my version checks the email like in the first post the OP shows an intention. Fixed stuff now

This post was edited on 11-03-2007 at 04:00 PM by Felu.
11-03-2007 03:58 PM
Profile E-Mail PM Web Find Quote Report
Addenorw
New Member
*


Posts: 5
Joined: Nov 2007
O.P. RE: MyStatusChange
thanks!
11-03-2007 06:27 PM
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