What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » I'm new but starting to learn! HELP :)

I'm new but starting to learn! HELP :)
Author: Message:
DirtJumper99
New Member
*


Posts: 3
Joined: Dec 2008
O.P. I'm new but starting to learn! HELP :)
Hey I need someone to help me with a basic code, I know the general response is to find another script with similar code and edit it, but I'm literally starting today with script coding.

I am looking for a code similar to the ones for when a contact signs in, but I would like it so when I sign in, a toast comes up that tells me the current status of one or more contacts in my list that can be decided in the settings.

For example, in the settings I select to check the status of email@email.com when i sign in, so when i sign in next time a toast will come up saying:
"Hello, email@email.com is currently [status]" but maybe put their nickname instead of email, in the toast.

I'm not sure if this is easy or hard to do, so just let me know if it's possible and if you can help me?

I am slowly learning on my own though! :)
Thanks!

Matt

EDIT: Or if it is easier, a script to do the above, but only for one contact, so no need for a menu or ability to select multiple contacts.

This post was edited on 12-07-2008 at 05:06 PM by DirtJumper99.
12-07-2008 04:57 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: I'm new but starting to learn! HELP :)
jscript code:
var oStatus = {0 : 'Unknown', 1 : 'Offline', 3 : 'Online', 4 : 'Busy', 5 : 'Be right back', 6 : 'Idle', 7 : 'Away', 8 : 'In a call', 9 : 'Out to lunch'};

function OnEvent_SigninReady(sEmail) {
    MsgPlus.DisplayToast('email@email.com', oStatus[Messenger.MyContacts.GetContact('email@email.com').Status]);
}

This post was edited on 12-07-2008 at 10:17 PM by matty.
12-07-2008 07:01 PM
Profile E-Mail PM Find Quote Report
DirtJumper99
New Member
*


Posts: 3
Joined: Dec 2008
O.P. RE: I'm new but starting to learn! HELP :)
Thanks Matty, I tried that code but nothing happened...
it just signed in normally with no messages or scripts appearing.. :S

EDIT: And yes I did insert the correct email

The error that comes up is this:
"Error: Object doesn't support this property or method (code: -2146827850)
       File: StatusCheck.js. Line: 4."

Heres my code:
jscript code:
var oStatus = {0 : 'Unknown', 1 : 'Offline', 3 : 'Online', 4 : 'Busy', 5 : 'Be right back', 6 : 'Idle', 7 : 'Away', 8 : 'In a call', 9 : 'Out to lunch'};

function OnEvent_SigninReady(sEmail) {
    MsgPlus.DisplayToast('email@email.co.uk', oStatus[Messenger.GetContact('email@email.co.uk').Status]);
}


Line 4 is: "MsgPlus.DisplayToast('email@email.co.uk', oStatus[Messenger.GetContact('email@email.co.uk').Status]);"

This post was edited on 12-07-2008 at 08:13 PM by DirtJumper99.
12-07-2008 08:04 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: I'm new but starting to learn! HELP :)
It's Messenger.MyContacts.GetContact(... :)

This post was edited on 12-07-2008 at 08:16 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-07-2008 08:16 PM
Profile E-Mail PM Web Find Quote Report
DirtJumper99
New Member
*


Posts: 3
Joined: Dec 2008
O.P. RE: I'm new but starting to learn! HELP :)
Thanks a lot :P
Hopefully next time I wont have to ask for such simple scripts :D
12-07-2008 09:24 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