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

How to replace messeges
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: How to replace messeges
Unfortunately that's a nasty glitch from the Plus! engine. When an event is fired, such as OnEvent_ChatWndSendMessage, Plus! executes the event handlers from all enabled scripts in alphabetical order (A to Z).

If your script is named "My Script" and the Colorizer script is called "Colorizer", Colorizer will be executed first. It sees no command so it ignores the message. Your script then adds the command in front but it is no longer parsed by the Colorizer script.

Currently, the only workaround is to name your script something like "AAA - My Script" to make it execute its handlers before the Colorizer script. Another way would be to modify the Colorizer script yourself by removing the requirement for the /colorizer command.

Still, I don't recommend doing this for all messages. Adding /colorizer to every message without proper checks will block all other command from Plus! and any other script. Use some preliminary checks to make sure you're processing only non-command messages.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
01-10-2010 02:40 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How to replace messeges - by Barathrum on 01-09-2010 at 09:55 PM
RE: How to replace messeges - by Spunky on 01-10-2010 at 12:07 AM
RE: How to replace messeges - by Barathrum on 01-10-2010 at 11:03 AM
RE: How to replace messeges - by Matti on 01-10-2010 at 02:40 PM
RE: How to replace messeges - by Barathrum on 01-10-2010 at 03:17 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