SP3 - MsgPlus Script Problem |
Author: |
Message: |
markee
Veteran Member
Posts: 1622 Reputation: 50
36 / /
Joined: Jan 2006
|
RE: SP3 - MsgPlus Script Problem
Actually if you want the format I would recommend you look at this page.
|
|
03-10-2007 05:29 AM |
|
|
bigbob85
Full Member
Is Good, Is Bob...
Posts: 128 Reputation: 4
37 / /
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 |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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 |
|
|
bigbob85
Full Member
Is Good, Is Bob...
Posts: 128 Reputation: 4
37 / /
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 |
|
|
bigbob85
Full Member
Is Good, Is Bob...
Posts: 128 Reputation: 4
37 / /
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 |
|
|
Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
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 |
|
|
TheGuruSupremacy
Full Member
Posts: 367 Reputation: 19
34 / /
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 |
|
|
Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
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 |
|
|
TheGuruSupremacy
Full Member
Posts: 367 Reputation: 19
34 / /
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 |
|
|
Jesus
Scripting Contest Winner
Koffie, my cat ;)
Posts: 623 Reputation: 15
38 / /
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 |
|
|
Pages: (3):
« First
«
1
[ 2 ]
3
»
Last »
|
|