What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] SendMessage Problem

[?] SendMessage Problem
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [?] SendMessage Problem
quote:
Originally posted by SpunkyLoveMuff
I have managed to fix this now. It's because the ChatWnd.SendMessage function was sending the data back to OnEvent_ChatWndSendMessage and then the code would loop again, but return ""...
I see... though the ChatWnd.SendMessage function doesn't send anything back. It sends data to the chatwindow, probably triggering another OnEvent_ChatWndSendMessage, and that is what looped.

1) OnEvent_ChatWndSendMessage is triggered (A)
2)    you perform somewhere in that function an ChatWnd.SendMessage
3)    Another OnEvent_ChatWndSendMessage is triggered (B)
4)    OnEvent_ChatWndSendMessage (B) is ended and returns
5) OnEvent_ChatWndSendMessage (A) is ended and returns

As you see OnEvent_ChatWndSendMessage (A) isn't finished until all the code/statements which are performed in that function are executed, only then it will finish.

or:

1) OnEvent_ChatWndSendMessage is triggered (A)
2)    you perform somewhere in that function an ChatWnd.SendMessage
3) OnEvent_ChatWndSendMessage (A) is ended and returns
4) Another OnEvent_ChatWndSendMessage is triggered (B)
5) OnEvent_ChatWndSendMessage (B) is ended and returns

Again, no function or event will finish when all statements inside that function are finished.

This post was edited on 11-27-2006 at 08:27 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-27-2006 08:22 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] SendMessage Problem - by Spunky on 11-27-2006 at 02:02 PM
RE: [?] SendMessage Problem - by Felu on 11-27-2006 at 02:15 PM
RE: [?] SendMessage Problem - by CookieRevised on 11-27-2006 at 04:42 PM
RE: [?] SendMessage Problem - by Spunky on 11-27-2006 at 04:50 PM
RE: [?] SendMessage Problem - by CookieRevised on 11-27-2006 at 08:22 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