What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Debug Please

Debug Please
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Debug Please
As Mnjul said, you made 2 mistakes:
  • OnEvent_ChatWndReceiveMessage is also called for messages you sent and are "received" in the chat window. Therefore, you should check the Origin: only if the Origin is not your own name, you should send the message "Test".
  • The Close() function is a child of the PlusWnd object. PlusWnds have absolutely nothing to do with ChatWnds. Therefore, the Close() method won't work for a ChatWnd object. The easiest way to close the window then is to send "/close", after checking if you can actually send something by checking if ChatWnd.EditChangeAllowed is true, but in fact you should do that before you send your "Test" message.
Hopefully these hints allow you to fix your problem. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-28-2007 12:59 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Debug Please - by ::Quick:: on 12-28-2007 at 12:28 PM
RE: Debug Please - by Mnjul on 12-28-2007 at 12:48 PM
RE: Debug Please - by Matti on 12-28-2007 at 12:59 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