Shoutbox

[Feature Request] Additional identifier - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Feature Request] Additional identifier (/showthread.php?tid=62997)

[Feature Request] Additional identifier by John Anderton on 07-10-2006 at 06:36 PM

Can we have an additional identifier for OnEvent_ChatWndReceiveMessage which can hold the email address of the person triggering the function.

origin holds the name but for identification sakes, that is insecure and needs email checking. An identifier would make things a lot easier rather than having to create a lot of other stuff :)


RE: [Feature Request] Additional identifier by Ezra on 07-10-2006 at 06:41 PM

Yeah, i'd like to see this too, kinda weird anyway, because all the events work with e-mailadresses and this one works with a nickname :-S


RE: [Feature Request] Additional identifier by John Anderton on 07-10-2006 at 06:45 PM

Nickname is good and all, no doubt, but its weak authentification protection. It could be added as the last param after message kind thus not disturbing the already existing scripts. It would easy the pressure on a lot of things and make quite a lot of them easier i believe ;)


RE: [Feature Request] Additional identifier by noroom on 07-10-2006 at 07:37 PM

It can't be done. Plus! itself doesn't know (with 100% certainty) where the message is coming from.

It was possible back in the day where there was a MSN Object API. Now all Plus! can do is guess.

[QUOTE=Scripting Documentation]Because Messenger Plus! analyses messages received only when they reach the chat window, it is not possible to determine exactly from which contact the message came from. However, several methods can be used to guess if the message was actually sent by the current user. For example, to determine whether or not the personalized status messages should be sent when a message is received, Messenger Plus! compares the time of the last ChatWndSendMessage event with the current time. If it is less than 1 second, the message is considered to come from the current user and the preciously recorded time is reset. Even if this method of analysis can seem too simplistic, it works in almost every scenario as it is extremely rare to receive a message sent by a contact between the time the "Send" button was pressed and the time the message of the current user was added to the window (as Messenger does not wait to receive a reply from the server before adding the message to the history control).



RE: [Feature Request] Additional identifier by foaly on 07-10-2006 at 07:46 PM

well if you can get the contact's name you should be able to find a contact with that name and return is e-mailadres...
so it must be possible..


RE: [Feature Request] Additional identifier by Eljay on 07-10-2006 at 07:47 PM

i remember patchou saying that he also has no reliable way of getting the persons email from their name, for the very same reason we cant loads of people could have the same name, and that he wont implement it because its unreliable. (edit: wow im slow (but still right :P), see norooms post above)

although if loads of people are going to make scripts which rely on retrieving email from name, then it would be more reliable if patchou were to implement it. this would at least provide a standard way of checking instead of every scripter using a different method.


RE: [Feature Request] Additional identifier by noroom on 07-10-2006 at 08:43 PM

What are you saying? Go through all the contacts in the contact list until one contact matches the nickname, and then return his email? What if more than one contact match the nickname? What if none does, because the user has deleted the contact from his list?

It can't be done without socket hooking, and that doesn't sound healthy, does it? :P


RE: [Feature Request] Additional identifier by John Anderton on 07-11-2006 at 07:39 AM

quote:
Originally posted by noroom
What if more than one contact match the nickname?
That is the single most important problem that we face. Volv was speaking of an idea .... tho it seemed complex, he is using it in his emailing script so im guessing it works :P
RE: [Feature Request] Additional identifier by -dt- on 07-11-2006 at 07:47 AM

quote:
Originally posted by noroom
What are you saying? Go through all the contacts in the contact list until one contact matches the nickname, and then return his email? What if more than one contact match the nickname? What if none does, because the user has deleted the contact from his list?
no just loop chatWnd.Contacts