What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [(pre-)release] Advanced PSM Chat

[(pre-)release] Advanced PSM Chat
Author: Message:
Plan-1130
Full Member
***

I keep askin' myself: why?

Posts: 142
73 / Male / –
Joined: Feb 2005
O.P. [(pre-)release] Advanced PSM Chat
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 :)

.plsc File Attachment: Advanced PSM Chat.plsc (4.63 KB)
This file has been downloaded 1537 time(s).
My Scripts: UltimatFlooder, Advanced PSM Chat, PlusPrivacy, PlusRemote

[Image: Plan-1130.png]
10-16-2006 08:50 PM
Profile E-Mail PM Find Quote Report
bauer
New Member
*


Posts: 2
Joined: Mar 2007
RE: [(pre-)release] Advanced PSM Chat
thx
03-19-2007 06:01 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [(pre-)release] Advanced PSM Chat
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.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-19-2007 06:40 PM
Profile PM Find Quote Report
Menthix
forum admin
*******

Avatar

Posts: 5537
Reputation: 102
40 / Male / Flag
Joined: Mar 2002
RE: [(pre-)release] Advanced PSM Chat
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 "/".
Finish the problem
Menthix.net | Contact Me
03-19-2007 06:45 PM
Profile E-Mail PM Web Find Quote Report
Plan-1130
Full Member
***

I keep askin' myself: why?

Posts: 142
73 / Male / –
Joined: Feb 2005
O.P. Cool  RE: [(pre-)release] Advanced PSM Chat
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;
}


This post was edited on 12-25-2009 at 11:30 AM by Plan-1130.
My Scripts: UltimatFlooder, Advanced PSM Chat, PlusPrivacy, PlusRemote

[Image: Plan-1130.png]
12-21-2009 11:21 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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