What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » Bug in OnEvent_ChatWndReceiveMessage ?

Bug in OnEvent_ChatWndReceiveMessage ?
Author: Message:
crino
New Member
*


Posts: 10
Joined: Jul 2006
O.P. Bug in OnEvent_ChatWndReceiveMessage ?
I'm try to develope a new script plugin.
In OnEvent_ChatWndReceiveMessage
i wrote:
...
var txt = "New msg:\r\n" + sMessage.substr(5);
Debug.Trace(txt);
return (txt);

in Debug window i can see the correct text but on message window i get a truncate text :S
This happens when the msg is short than 6 chars.
'return sMessage' returns the correct message


Is a bug or i wrong something?
08-01-2006 09:34 AM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Bug in OnEvent_ChatWndReceiveMessage ?
You don't need a '\r' for the newline, just a '\n'. The '\r' may in fact be the problem here.
And you don't need the parentheses in the return statement.
[Image: spartaafk.png]
08-01-2006 10:23 AM
Profile PM Web Find Quote Report
crino
New Member
*


Posts: 10
Joined: Jul 2006
O.P. RE: Bug in OnEvent_ChatWndReceiveMessage ?
hi race,
yes i know....parentheses are garbage during my test :p
thanks for your tips :)
08-01-2006 10:51 AM
Profile E-Mail PM Find Quote Report
« 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