What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » I am making a script...

I am making a script...
Author: Message:
augrunt
New Member
*


Posts: 4
Joined: May 2004
O.P. I am making a script...
I am making a script atm... and I want it to do Two particular functions...

I am making a Combat script... For two friends who are fighting for something...

Now, I need it to... Once the person signs in to look at an inputed email (which will be entered in the configuration).

So say myself and my friend... jack, are having a little chat battle or nudge war... I'll put his email inside the configuration (jack@somewhere.com).

Now soon as i do that, the script checks his email, and retrieves his nickname and stores it as a variable...

Now depending on what its set... it could either appear as my Nickname as (|| Steven || v || --J@ck--- ||) or a personal message (|| Steven || is Vs || --J@ck-- ||)

My question is how do I set the script to retrieve his name using just an email.


please add me on augrunt@hotmail.com
08-16-2006 04:16 AM
Profile E-Mail PM Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: I am making a script...
code:
var Contacts = Messenger.MyContacts;
var Contact = Contacts.GetContact("ddunk@is.a.ponynugget.net");
Debug.Trace(Contact.Name);
and for the PSM/nick thing:
code:
Messenger.MyPersonalMessage = Messenger.MyName + " vs " + Contact.Name;
or
code:
Messenger.MyName = Messenger.MyName + " vs " + Contact.Name;

This post was edited on 08-16-2006 at 04:30 AM by ddunk.
08-16-2006 04:24 AM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: I am making a script...
quote:
Originally posted by ddunk
code:
var Contacts = Messenger.MyContacts;
var Contact = Contacts.GetContact("ddunk@is.a.ponynugget.net");
Debug.Trace(Contact.Name);


You could just write that into a single line as well, though you won't have the Contacts and Contact variables to refer back to later.
code:
Debug.Trace(Messenger.MyContacts.GetContact("email@address.com").Name)

This post was edited on 08-16-2006 at 04:37 AM by markee.
[Image: markee.png]
08-16-2006 04:34 AM
Profile 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