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

Pages: (2): « First [ 1 ] 2 » Last »
Scripting Bugs...
Author: Message:
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
O.P. Scripting Bugs...
markee and i were scripting Message Customizer! Live and when markee put stuff onto my computer that work perfect on his it would work on mine. we eventually found what the error was. it is:
code:
Messenger.MyContacts.GetContact("EMIAL@yahoo.com").Name
and the debugger comes up with:
code:
Error: Object required.
Line: LINE. Code: -2146827864.
i was just wondering if you would be able to look into this for me. we think it was plus! having troubles trying to make the contact object and this is the first time this has happened to us so we weren't entirely sure.  has anyone else had this trouble?


thanks NanaFreak

This post was edited on 12-14-2006 at 03:34 AM by NanaFreak.
12-14-2006 03:34 AM
Profile PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Scripting Bugs...
Verified. Its only with all yahoo network contacts.
12-14-2006 10:20 AM
Profile E-Mail PM Web Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: Scripting Bugs...
Thank you for reporting, that will be fixed in the next version. Meanwhile, to make it work, just prefix the email with "yahoo:" so that "contact@yahoo.com" becomes "yahoo:contact@yahoo.com" and it will work (it will also continue to work in future versions).

This post was edited on 12-14-2006 at 10:39 PM by Patchou.
[Image: signature2.gif]
12-14-2006 10:36 PM
Profile PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Scripting Bugs...
Thanks Patchou!  Though I must tell you that I had to adjust what you said a little to get it to work.  instead of prefixing the email address with "yahoo:" it needed to be "Yahoo:", its a shame that one capitalization makes such a difference.  Thanks though, I hope this detail helps other people out too [Image: xso_cheesy.gif].

This post was edited on 12-15-2006 at 04:00 AM by markee.
[Image: markee.png]
12-15-2006 03:59 AM
Profile PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Scripting Bugs...
Just saw (!M) with yahoo contacts becomes yahoo:contact@yahoo.com [Image: msn_tongue.gif]. And i like the idea that both yahoo:contact@yahoo.com and contact@yahoo.com will work. It is easy to identify Yahoo network contacts. But (!M) should only return contact@yahoo.com [Image: msn_happy.gif].
12-15-2006 11:03 AM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Scripting Bugs...
So, wait...

if a Yahoo contact triggers an event (eg: contactsignin), or when you get the email from the Contact object, the email will always be prefixed with "Yahoo:" ?

If so, it would mean that many scripts need to be updated and maybe will even break...

PS: I can't test this since I don't have any yahoo contacts, hence my question here.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-15-2006 02:36 PM
Profile PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Scripting Bugs...
quote:
Originally posted by CookieRevised
if a Yahoo contact triggers an event (eg: contactsignin), or when you get the email from the Contact object, the email will always be prefixed with "Yahoo:" ?
Tested. They are prefixed with a yahoo: and not Yahoo: [Image: msn_tongue.gif]. And Messenger.CreateChat("contact@yahoo.com"); does not work(not the right contact, though same email) but Messenger.CreateChat("yahoo:contact@yahoo.com"); does.
12-15-2006 02:51 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Scripting Bugs...
So we have two contacts with same email but different networks (as this is possible according to the plus! scripting docs):

What will happen when you do createchat() or getcontact() with just the email in that case? Open a chat and get the contact from the MSN network?

And since both emails exist, we also can't check for the .Network, because, what contact is meant with getcontact("e@mail.com")? Or, to put it in another way, to get the correct network for the contact, we _need_ to prefix the email with "yahoo". But then again, since we prefix it with yahoo, we already know it is a yahoo contact...

And let's say we have a bunch of email addresses (given by the user or whatever), and we want to know which emails are in our list and what the network is for them.
To get _all_ contact objects from those emails we actually need to call getcontact() twice for each email (once with and once without the prefix)? Because:
1) for a yahoo email, and no same msn email exist, calling getcontact("e@mail.com") will not return null, so we have a contact object to get the network
2) for a yahoo email, and same msn email exists, calling getcontact("e@mail.com") will also not return null, but it will return the wrong contact....
So we _need_ to call getcontact() twice, with and without the prefix....





-----

Another question: How is it actually possible to have 2 of the same emails in Messenger.MyContacts but each with a different network? Does that mean when one signs in with his account in Messenger, he can also sign in with that same email address in yahoo messenger?

-----

And thus since Contact.Email will always give only the email without the possible prefix, every script which uses for example if (Contact.Email !== Messenger.MyEmail) to make sure something isn't done with our own account (and that is used a lot in many scripts!), is no good and will fail since there is a possebility that someone made a yahoo account with that email...

Aka Messenger.MyEmail isn't always our own email address, but might be the email of someone else too!

So, the only correct way to check if a contact object _is_ our own is something like:
if (Contact.Email === Messenger.MyEmail && Contact.Network === 1) { // Contact = us }


?




....
major confussions here



PS: though any help is majorly appriciated, those who want to try and answer these questions or clarify and explain something, make absolutely sure you 100% know what you're talking about and that it is 100% correct what you're saying as it is already confussing enough as it is ;)

This post was edited on 12-15-2006 at 05:54 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-15-2006 05:18 PM
Profile PM Find Quote Report
Menthix
forum admin
*******

Avatar

Posts: 5537
Reputation: 102
40 / Male / Flag
Joined: Mar 2002
RE: Scripting Bugs...
quote:
Originally posted by CookieRevised
Does that mean when one signs in with his account in Messenger, he can also sign in with that same email address in yahoo messenger?
No, but you can signin with your Yahoo address in YIM and use the Yahoo address with a .Net Passport so you can signin to WLM with the same address at the same time. And I believe its possible to have a address added for both of those networks on your contact list.
Finish the problem
Menthix.net | Contact Me
12-15-2006 05:26 PM
Profile E-Mail PM Web Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: Scripting Bugs...
(!M) fixed for yahoo contacts.

I'll add some information about the "yahoo:" prefix in the documentation. Remember that it is pretty rare to have two contacts with the same email but on two networks, however, I agree this may happen and Messenger Plus! Live was designed to work properly in such cases.

For scripts, the problem shouldn't be that big... if you have the email of a contact, you got it from somewhere and this somewhere will generally be a Contact object that has the Network property. By default, if no "yahoo:" prefix is added, GetContact() will search first for MSN contacts, then for Yahoo ones. I will fix OpenChat() the same way.

This post was edited on 12-15-2006 at 06:16 PM by Patchou.
[Image: signature2.gif]
12-15-2006 06:10 PM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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