What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » Scripting: OnEvent_ChatWndSendMessage not fired correctly

Scripting: OnEvent_ChatWndSendMessage not fired correctly
Author: Message:
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
O.P. RE: Scripting: OnEvent_ChatWndSendMessage not fired correctly
quote:
Originally posted by CookieRevised
Are you sure Plus! clears the text area before OnEvent_ChatWndSendMessage is called? That seems strange... since Plus! can't know if the text is going to be parsed or not.

If text is not going to be parsed, Plus! will intercept the push on the send button and fires ChatWndSendMessage event and a new line is added after the existing text. Or ... a new line is added after the existing text and Plus! fires a ChatWndSendMessage event. Either way, line is added after the text.

If text is going to be parsed, Plus! will intercept the push on the send button and fires ChatWndSendMessage event, text is replaced (and cursor should be at the end in this case) and a new line is added after the existing text. Or ... a new line is added after the existing text and Plus! fires a ChatWndSendMessage event and the existing text is replaced (doubt this is how it works). Either way, line is added after the text.

Where did I screw up? (note: didn't tested anything of this... I'm lazy atm )
it doesn't matter if plus is going to replace text or not... the thing is that unless you do explicitly, when you put text in an edit box, the cursor possition is at the begining of the text. (with "you put" i mean "a program puts"). The possition is moved when the user pushes keys and types, not when Plus sets the texts of the edit box. And that's done before executing Messenger's code of the button (which Plus always thinks it's going to send the message). That's why when Plus finishes its work, it lets Messenger execut tis code, which in this case is to insert a new line at the possition, which is the begining because Plus (unconsciously) changed it.
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
01-10-2007 08:26 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Scripting: OnEvent_ChatWndSendMessage not fired correctly - by Choli on 01-07-2007 at 02:43 AM
RE: Scripting: OnEvent_ChatWndSendMessage not fired correctly - by deAd on 01-07-2007 at 03:13 AM
RE: RE: Scripting: OnEvent_ChatWndSendMessage not fired correctly - by CookieRevised on 01-07-2007 at 04:34 AM
RE: Scripting: OnEvent_ChatWndSendMessage not fired correctly - by Matti on 01-07-2007 at 10:03 AM
RE: Scripting: OnEvent_ChatWndSendMessage not fired correctly - by Choli on 01-07-2007 at 12:57 PM
RE: RE: Scripting: OnEvent_ChatWndSendMessage not fired correctly - by CookieRevised on 01-07-2007 at 05:00 PM
RE: Scripting: OnEvent_ChatWndSendMessage not fired correctly - by Choli on 01-07-2007 at 06:16 PM
RE: RE: Scripting: OnEvent_ChatWndSendMessage not fired correctly - by CookieRevised on 01-08-2007 at 11:48 PM
RE: Scripting: OnEvent_ChatWndSendMessage not fired correctly - by Choli on 01-10-2007 at 08:26 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