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

SP3 - MsgPlus Script Problem
Author: Message:
TheGuruSupremacy
Full Member
***

Avatar

Posts: 367
Reputation: 19
34 / Male / Flag
Joined: Nov 2006
RE: SP3 - MsgPlus Script Problem
quote:
Originally posted by Mattike
quote:
Originally posted by TheGuruSupremacy
Try to use this code
Note that this will only work to look for received messages sent by someone else. You can't use it to modify the way your own messages are displayed on your side, because ChatWnd.Contacts only include the contacts in a chat window except the active Messenger user. Therefore, you can't use that to compare it to your name.

I don't think it....It's true that ChatWnd.Contacts only include the contacts in a chat window except the active Messenger user but you can compare with your name using syntax if....else...

Function Example:

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind )
{var Contacts = ChatWnd.Contacts
var Contact = new Array()
var e = new Enumerator(Contacts)
var AmI = new Boolean()
var i =0
Debug.Trace("Chatting with ")
for(;!e.atEnd();e.moveNext()){
Contact[i] = e.item().Name
Debug.Trace(Contact[i])
i++}
for(var y=0;y<Contact.length;y++){
if (Origin==Contact[y]){
AmI=false}else{
AmI=true
break}
}
Debug.Trace("Message: " + Message)
Debug.Trace("Have i written this message???" + AmI)
}


However i have checked that it can not work with timestamp because not only your name is modificated but also contact's name...you can use this code

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind )
{var time = new Date()
var hours = time.getHours()
var minutes = time.getMinutes()
var seconds = time.getSeconds()
var Myformattednick = "[" + hours + "." + minutes + "." + seconds + "]" + " " + Messenger.MyName
Debug.Trace(Myformattednick)
Debug.Trace(Origin)
if (Myformattednick!=Origin){
//do anything
}else{//do else
}
}

This post was edited on 03-09-2007 at 08:50 PM by TheGuruSupremacy.
03-09-2007 05:41 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
SP3 - MsgPlus Script Problem - by bigbob85 on 03-08-2007 at 09:57 PM
RE: SP3 - MsgPlus Script Problem - by matty on 03-08-2007 at 10:07 PM
RE: SP3 - MsgPlus Script Problem - by Felu on 03-09-2007 at 04:07 AM
RE: SP3 - MsgPlus Script Problem - by markee on 03-09-2007 at 01:18 PM
RE: SP3 - MsgPlus Script Problem - by J-Thread on 03-09-2007 at 03:35 PM
RE: SP3 - MsgPlus Script Problem - by TheGuruSupremacy on 03-09-2007 at 04:43 PM
RE: SP3 - MsgPlus Script Problem - by Matti on 03-09-2007 at 05:37 PM
RE: SP3 - MsgPlus Script Problem - by TheGuruSupremacy on 03-09-2007 at 05:41 PM
RE: RE: SP3 - MsgPlus Script Problem - by markee on 03-10-2007 at 04:48 AM
RE: SP3 - MsgPlus Script Problem - by bigbob85 on 03-10-2007 at 05:20 AM
RE: SP3 - MsgPlus Script Problem - by markee on 03-10-2007 at 05:29 AM
RE: SP3 - MsgPlus Script Problem - by bigbob85 on 03-10-2007 at 05:42 AM
RE: SP3 - MsgPlus Script Problem - by matty on 03-10-2007 at 07:01 AM
RE: SP3 - MsgPlus Script Problem - by bigbob85 on 03-10-2007 at 07:08 AM
RE: SP3 - MsgPlus Script Problem - by bigbob85 on 03-12-2007 at 09:57 AM
RE: SP3 - MsgPlus Script Problem - by Felu on 03-12-2007 at 10:04 AM
RE: RE: SP3 - MsgPlus Script Problem - by TheGuruSupremacy on 03-12-2007 at 10:49 AM
RE: SP3 - MsgPlus Script Problem - by Felu on 03-12-2007 at 10:57 AM
RE: SP3 - MsgPlus Script Problem - by TheGuruSupremacy on 03-12-2007 at 11:01 AM
RE: SP3 - MsgPlus Script Problem - by Jesus on 03-12-2007 at 12:13 PM
RE: SP3 - MsgPlus Script Problem - by bigbob85 on 03-12-2007 at 09:21 PM
RE: SP3 - MsgPlus Script Problem - by kOMPlEXX on 03-20-2007 at 12:52 AM
RE: RE: SP3 - MsgPlus Script Problem - by Jesus on 03-20-2007 at 11:59 AM
RE: SP3 - MsgPlus Script Problem - by bigbob85 on 03-20-2007 at 05:50 AM
RE: SP3 - MsgPlus Script Problem - by bigbob85 on 03-20-2007 at 10:25 PM
RE: SP3 - MsgPlus Script Problem - by Jesus on 03-20-2007 at 11:24 PM
RE: SP3 - MsgPlus Script Problem - by bigbob85 on 03-21-2007 at 02:02 AM
RE: SP3 - MsgPlus Script Problem - by Jesus on 03-21-2007 at 10:46 AM
RE: SP3 - MsgPlus Script Problem - by bigbob85 on 04-05-2007 at 12:28 PM


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