Shoutbox

[(pre-)release] Advanced PSM Chat - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [(pre-)release] Advanced PSM Chat (/showthread.php?tid=67394)

[(pre-)release] Advanced PSM Chat by Plan-1130 on 10-16-2006 at 08:50 PM

Hi,

As you might have guessed, I'm here to announce a script i made lately,
I'm statisfied with it, but I'm not sure whether the public is, so, opinions are welcome :)

Here's what it does:
Once in control, it will be in total control of your PSM, it will be set to "Your text here? Type !psm <message>" and will change back to that as soon as it's changed. It securely backs up the changes so that if it's turned off, the original psm will be displayed.
Once someone types !psm, followed by a message, the turncated name of the sender is displayed, followed by the message in your psm. After half a minute it will be set back.
It can be turned on with !psmenable <password> and disabled with !psmdisable <password>
The PSM can be restored with !psmrestore <password>, and an anonymous message can be displayed with !psmano <password> <message> (will be displayed 1 minute).

All of the commands that start with ! are also available with /, so the command won't be sent (except for !psm and !psmano), you can set the password with /psmsetpass <old password> <newpassword> and has to be confirmed in a dialog.

Have fun with it :)


RE: [(pre-)release] Advanced PSM Chat by bauer on 03-19-2007 at 06:01 PM

thx


RE: [(pre-)release] Advanced PSM Chat by CookieRevised on 03-19-2007 at 06:40 PM

Can you please remove the commands starting with "!".

Commands should start with "/" not with anything else.
Reasons for this are explained in detail in some threads.


RE: [(pre-)release] Advanced PSM Chat by Menthix on 03-19-2007 at 06:45 PM

quote:
Originally posted by CookieRevised
Can you please remove the commands starting with "!".
It looks like the "!" commands are all meant to be used remotely. Nothing wrong with using "!" when they are intended to be used remote. "/" commands won't work anyway. Much the same story as bot commands on IRC.

But if the commands aren't meant to be used remotely, true, prefix normal commands with "/".
RE: [(pre-)release] Advanced PSM Chat by Plan-1130 on 12-21-2009 at 11:21 PM

I've decided to rewrite Advanced PSM Chat, and it's nearly finished.

One of the cool new features is, that it has Language packs!
Currently it now has a Dutch and an English translation.
It comes in the form of a script file, so do not download from any other sources but the first post of this thread.

See the attachment for the English translation, and how to translate, and then post it back here so I can include it in the new release.
Also if you don't want your accountname to be used in the About window, be sure to include it in your post ;)

Happy translating! :D

code:
/**
*        Please translate this into your language, and post it on http://shoutbox.menthix.net/showthread.php?tid=67394
*        Read carefully what to translate. This is a real script. Download languages only from the link above.
*       
*/


//Translate the strings
var PSM_IDLE                        = "Your text here? Type !psm <message>";
var RESPONSE_WAIT                    = "Thank you. Your message is placed inline.";
var RESPONSE_NOWAIT                    = "Thank you. Your message is displayed.";
var COMMAND_NOT_RECOGNIZED_TITLE    = "An error occurred:";
var COMMAND_NOT_RECOGNIZED            =  "The command you just typed had not been recognized.\n";
    COMMAND_NOT_RECOGNIZED            += "Try '/apsm help'.";
   
//Translate every second string
function translateAbout(PlusWnd){
    PlusWnd.SetControlText("BtnCancel",        "Cancel");
    PlusWnd.SetControlText("Lblversion",    "Version:");
    PlusWnd.SetControlText("Lblwho",        "by Sander Koning");
    PlusWnd.SetControlText("Lblother",        "Key functions:");
    PlusWnd.SetControlText("Lblf1",            "- Everyone can chat through your PSM");
    PlusWnd.SetControlText("Lblf2",            "- Command-based configuration");
    PlusWnd.SetControlText("Lblf3",            "- Queueing of messages");
}

function translateConfig(PlusWnd){
    PlusWnd.SetControlText("Enabled",                        "Enable");
    PlusWnd.SetControlText("lblMAXLENGTHSENDER",            "Characters to truncate the name:");
    PlusWnd.SetControlText("lblTIMEELAPSEMESSAGE",            "Seconds to display a psm:");
    PlusWnd.SetControlText("BtnReset",                         "Reset");
    PlusWnd.SetControlText("BtnSave",                         "Save");
    PlusWnd.SetControlText("BtnCancel",                     "Cancel");
}

//Translate the phrases in the tags (not the attributes)
function OnGetScriptMenu(Location){
    var ScriptMenu = "<ScriptMenu>";
    if(DISABLED)
        ScriptMenu += "<MenuEntry Id=\"MnuOn\">Turn On</MenuEntry>";
    else
        ScriptMenu += "<MenuEntry Id=\"MnuOff\">Turn Off</MenuEntry>";
   
    if(Location >= 2){
        ScriptMenu += "<Separator/>";
        ScriptMenu += "<MenuEntry Id=\"MnuBlock\">Block contacts</MenuEntry>";
        ScriptMenu += "<MenuEntry Id=\"MnuUnblock\">Unblock contacts</MenuEntry>";
    }
   
    ScriptMenu += "<Separator/>";
    ScriptMenu += "<MenuEntry Id=\"MnuReset\">Reset</MenuEntry>";
    ScriptMenu += "<Separator/>";
    ScriptMenu += "<MenuEntry Id=\"MnuConf\">Configure</MenuEntry>";
    ScriptMenu += "<MenuEntry Id=\"MnuAbout\">About</MenuEntry>";
    ScriptMenu += "</ScriptMenu>";
    return ScriptMenu;
}

// Translate everything in the Description tags
function OnGetScriptCommands(){
    var ScriptCommands =     "<ScriptCommands>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm on</Name>";
    ScriptCommands        +=         "<Description>Turns Advanced PSM Chat ON</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm off</Name>";
    ScriptCommands         +=         "<Description>Turns Advanced PSM Chat OFF</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm reset</Name>";
    ScriptCommands         +=         "<Description>Empties the queue, and the PSM</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm config</Name>";
    ScriptCommands         +=         "<Description>Opens the Configuration window</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm about</Name>";
    ScriptCommands         +=         "<Description>Opens the About window</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm block</Name>";
    ScriptCommands         +=         "<Description>Puts all the people in the convo on the blocklist</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm unblock</Name>";
    ScriptCommands         +=         "<Description>Removes all the people in the convo from the blocklist</Description>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "</ScriptCommands>";
   
    return ScriptCommands;
}