What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Betaish-Release] Recall Prefix

[Betaish-Release] Recall Prefix
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Betaish-Release] Recall Prefix
I must say this script is great, but I have one problem with this script. As script developer, I have to test my script commands time and time again to make sure it works well, so I use CTRL+UP a lot to repeat a command. However, because the script adds a prefix in front of it, it doesn't get parsed. Therefore, I had to modify your script. :P

So, what you should do in your OnEvent_ChatWndSendMessage is:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
  if(Waiting) {
    //If there are 2 slashes preceding the message (so it's an escaped command)...
    if(Message.substr(0,2) == "//") {
       //If the prefix contains some useful characters, return with one slash
       if(Prefix.length > 0) return Prefix + Message.substr(1) + Suffix;
       //Else, return with 2 slashes so it gets escaped by Plus!
       else return Message + Suffix;
    //Or, if the message is preceded by one slash (so it's a command), return it
    } else if(Message.charAt(0) == "/") return Message;
    //If there is no slash in front, add the prefix and suffix anyway
    else return Prefix + Message + Suffix;
  }
}
Tested and using! ;)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-27-2006 09:40 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Betaish-Release] Recall Prefix - by Eljay on 12-26-2006 at 09:09 PM
RE: [Betaish-Release] Recall Prefix - by deAd on 12-26-2006 at 09:53 PM
RE: [Betaish-Release] Recall Prefix - by CookieRevised on 12-27-2006 at 03:14 AM
RE: [Betaish-Release] Recall Prefix - by NanaFreak on 12-27-2006 at 05:13 AM
RE: [Betaish-Release] Recall Prefix - by CookieRevised on 12-27-2006 at 05:19 AM
RE: [Betaish-Release] Recall Prefix - by Matti on 12-27-2006 at 09:40 AM
RE: [Betaish-Release] Recall Prefix - by Eljay on 12-27-2006 at 11:53 AM
RE: [Betaish-Release] Recall Prefix - by linx05 on 12-27-2006 at 01:06 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