What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » SP3 - MsgPlus Script Problem

Pages: (3): « First « 1 [ 2 ] 3 » Last »
SP3 - MsgPlus Script Problem
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
RE: SP3 - MsgPlus Script Problem
Actually if you want the format I would recommend you look at this page.
[Image: markee.png]
03-10-2007 05:29 AM
Profile PM Find Quote Report
bigbob85
Full Member
***

Avatar
Is Good, Is Bob...

Posts: 128
Reputation: 4
36 / Male / Flag
Joined: Jul 2003
O.P. RE: SP3 - MsgPlus Script Problem
Thats the page I was looknig for. Kept getting search errors.

I'll see if I can make a regexp for it, but I think I'll get problems. So in the mean time, could you post the first one, if you can do regexp?
03-10-2007 05:42 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: SP3 - MsgPlus Script Problem
quote:
Originally posted by Felu
quote:
Originally posted by Matty
CookieRevised's reply to [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin
quote:
Originally posted by Matty
it gets the origin, it includes the time stamp.
So you'll need to put the TimeStamp before the Message aswell. It is stored here -> HKEY_LOCAL_MACHINE\SOFTWARE\iAvatars.com\StuffPlug\Messenger.MyUserID\szTimestamp. Place that before the ChatOnly Name and then use Regular Expressions to match the HH mm ss, etc :).
Obviously I am aware that the link is for Chat Only Name and he needs Time Stamp... well he should be smart enough to figure it out.
03-10-2007 07:01 AM
Profile E-Mail PM Find Quote Report
bigbob85
Full Member
***

Avatar
Is Good, Is Bob...

Posts: 128
Reputation: 4
36 / Male / Flag
Joined: Jul 2003
O.P. RE: SP3 - MsgPlus Script Problem
I found a way to do it.
Replace tt, before t in the time stamp string.
03-10-2007 07:08 AM
Profile E-Mail PM Web Find Quote Report
bigbob85
Full Member
***

Avatar
Is Good, Is Bob...

Posts: 128
Reputation: 4
36 / Male / Flag
Joined: Jul 2003
O.P. RE: SP3 - MsgPlus Script Problem
code:
if (!Origin.match(Messenger.MyName))
{
    // The msg wasn't from you, do stuff here.
}

Seems to work alright, is it flawed in a major way?
03-12-2007 09:57 AM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: SP3 - MsgPlus Script Problem
quote:
Originally posted by bigbob85
code:
if (!Origin.match(Messenger.MyName))
{
    // The msg wasn't from you, do stuff here.
}

Seems to work alright, is it flawed in a major way?
What if the chat only name is entirely different from my name or if the contact has a nickname similar to mine?
03-12-2007 10:04 AM
Profile E-Mail PM Web Find Quote Report
TheGuruSupremacy
Full Member
***

Avatar

Posts: 367
Reputation: 19
33 / Male / Flag
Joined: Nov 2006
RE: RE: SP3 - MsgPlus Script Problem
quote:
Originally posted by Felu
What if the chat only name is entirely different from my name or if the contact has a nickname similar to mine?


See Cookie Code
03-12-2007 10:49 AM
Profile PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: SP3 - MsgPlus Script Problem
quote:
Originally posted by TheGuruSupremacy
See Cookie Code
I pointed that towards Bob's code.
quote:
Originally posted by bigbob85
if (!Origin.match(Messenger.MyName))
{
    // The msg wasn't from you, do stuff here.
}
03-12-2007 10:57 AM
Profile E-Mail PM Web Find Quote Report
TheGuruSupremacy
Full Member
***

Avatar

Posts: 367
Reputation: 19
33 / Male / Flag
Joined: Nov 2006
RE: SP3 - MsgPlus Script Problem
quote:
Originally posted by Felu
I pointed that towards Bob's code.

Eheh okie...However as you know bob's code if contact have chat name nick only or nick similar to yours doesn't work fine
03-12-2007 11:01 AM
Profile PM Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
37 / Male / Flag
Joined: Jul 2005
RE: SP3 - MsgPlus Script Problem
Can't you just use the second code Cookie posted?
code:
var aSent = new Array();

function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
    aSent[ChatWnd.Handle] = Message;
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
    if (aSent[ChatWnd.Handle] === Message) {
        delete aSent[ChatWnd.Handle];
    } else {
        // a contact sent the message, so do whatever
    }
}
doesn't check for any nicknames at all...
03-12-2007 12:13 PM
Profile PM Find Quote Report
Pages: (3): « First « 1 [ 2 ] 3 » 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