Messenger Stuff Community Forums

Full Version: [Scripts] the email address of the contact?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!
I
Yes the "Contact.Email" is wrong as "Contact" has to be specified from the "Contacts" array. To get the contact that you are currently talking to in the ChatWnd that you run the script from, do that use something like this:
Code:
for(var enumerator = new Enumerator(ChatWnd.Contacts); !enumerator.atEnd(); enumerator.moveNext()){
    currentcontact = enumerator.item();
}
then you can use currentcontact.Email to get their email address

I don't know if that code snippet you posted is just an example but that alone will not work properly and contains several errors ...
Thank You.

It worked exactly as I wanted :d
If you have any other questions feel free to ask them here, but the Messenger Plus! Forums scripts section is full of script creators willing to help ;).
Reference URL's