What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Received Text and Origin.

Pages: (2): « First « 1 [ 2 ] Last »
[Help] Received Text and Origin.
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: [Help] Received Text and Origin.
quote:
Originally posted by CookieRevised
It would do exactlythe same thing (but even better)?
It would be better if we had the option of putting in events from scripts like we do with the event logger though.  I'm not sure what benefit it would give, but it is just that bit more flexibility....
[Image: markee.png]
06-30-2008 08:43 AM
Profile PM Find Quote Report
uNDeRGRouND99
New Member
*


Posts: 10
Joined: Jun 2008
O.P. RE: [Help] Received Text and Origin.
Sorry, i've fixed. Now work.
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind)
{
var e = new Enumerator(ChatWnd.Contacts);
    var Cnt = e.item();
    Contact = Cnt.Email;
    if(Origin != Messenger.MyName)
        AddLineToFile (FileName + ".txt", GetTime + "  -  " + Contact + ":  " + Message);
}
Thanks for all ;)
06-30-2008 09:01 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Help] Received Text and Origin.
Use that code in a group conversation and you'll see it will not work properly. ;)

You need to use the Origin parameter to get to the correct email.

Also, as someone already pointed out, the GetTime variable will always return the same time. You should make a function out of it which always gets the current time (not just when the script is started when you start Messenger).
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-30-2008 11:09 PM
Profile PM 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