What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Can't set ChatWnd.EditText inside OnEvent_ChatWndSendMessage()

Can't set ChatWnd.EditText inside OnEvent_ChatWndSendMessage()
Author: Message:
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
O.P. Can't set ChatWnd.EditText inside OnEvent_ChatWndSendMessage()
Inside OnEvent_ChatWndSendMessage() I want to parse a command (starting with /), set ChatWnd.EditText to something and then return nothing so that no text is sent in the conversation window.

If I return ""; in the event right after setting ChatWnd.EditText then it will clear what I set.

If I don't return anything then I get the message that the command was not recognised, but the value set by the EditText property was not cleared.

How do I avoid this issue?

This post was edited on 07-28-2006 at 09:35 PM by segosa.
The previous sentence is false. The following sentence is true.
07-28-2006 09:34 PM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Can't set ChatWnd.EditText inside OnEvent_ChatWndSendMessage()
You could use a timer, kinda dodgy but should work right?
[Image: 1-0.png]
             
07-28-2006 10:42 PM
Profile PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Can't set ChatWnd.EditText inside OnEvent_ChatWndSendMessage()
Yeah, you'd need a timer...or if you can think of any other way to do things after the return :P
07-28-2006 10:43 PM
Profile 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