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:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: RE: SP3 - MsgPlus Script Problem
quote:
Originally posted by TheGuruSupremacy
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
}
}


You can't use that, just use a regular expression to omit the time stamp when the registry setting for StuffPlug has the feature enabled.  It is also probable wise to add this to CookieRevised's code that was linked to earlier.

EDIT: The reason for the regular expression to omit the time stamp (probably a replace method is best) is because the seconds/minutes/hours could change between when stuffplug adds the time stamp and the script removes it (eg. stuff plug adds the time at 23:59:59 (and 999 milliseconds) at the 31st of december then when your script gets to it, it will already be a new year and ever value has changed and will not be the same).  I hope this gives you explanation rather than just saying it is wrong.

I do stress to add this to CookieRevised's code and to also check to see if the registry setting has the feature enabled before going through your method.

This post was edited on 03-10-2007 at 04:53 AM by markee.
[Image: markee.png]
03-10-2007 04:48 AM
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