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

Pages: (2): « First [ 1 ] 2 » Last »
Packing Scripts
Author: Message:
pedro_cesar
Junior Member
**

Avatar

Posts: 61
36 / Male / –
Joined: Dec 2006
Status: Away
O.P. Packing Scripts
Is it allright to upload a script that will require the user to open it and edit it (Since Nicknames are diferent from ppl to ppl)?????
12-22-2006 02:22 PM
Profile E-Mail PM Web Find Quote Report
EBFL
Full Member
***

Avatar
;o

Posts: 486
Reputation: 67
32 / Male / Flag
Joined: Oct 2006
RE: Packing Scripts
quote:
Originally posted by pedro_cesar
Is it allright to upload a script that will require the user to open it and edit it (Since Nicknames are diferent from ppl to ppl)?????
Scripting Documentation.
Didnt get that much, so if that isnt what you wanted speak more clearly

This post was edited on 12-22-2006 at 02:27 PM by EBFL.
I'm awesome

12-22-2006 02:25 PM
Profile PM Find Quote Report
pedro_cesar
Junior Member
**

Avatar

Posts: 61
36 / Male / –
Joined: Dec 2006
Status: Away
O.P. RE: Packing Scripts
I've seen the Scripting Documentation. The thing is I created a script which rotates nicknames as u login, plus it lets u choose either one of'em with a command, but nicknames are different to everyone, so the script will require the user to open it and add his own nicknames which he wants to rotate.
12-22-2006 02:30 PM
Profile E-Mail PM Web Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Packing Scripts
just post it 8-)
12-22-2006 02:31 PM
Profile PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
37 / Male / –
Joined: May 2004
Status: Away
RE: Packing Scripts
Well it's OK to do it, but it's a lot less professional, what you want to do is make windows or commands the user could use to enter their preferences, and then save them somewhere (like the registry, or in a txt file).

For example, you make a plus window that has a large text box where the user can enter each nickname they want, seperated by a new line.  You then save that to a file and read it from there every time the script is loaded.

This post was edited on 12-22-2006 at 02:34 PM by alexp2_ad.
12-22-2006 02:33 PM
Profile E-Mail PM Find Quote Report
pedro_cesar
Junior Member
**

Avatar

Posts: 61
36 / Male / –
Joined: Dec 2006
Status: Away
O.P. RE: Packing Scripts
This is my script, I want to upload it as plsc. so ppl can download and import it, so i wanna know if it's ok it has to be edited:

var old_DP = "N/A";
var old_NN = "N/A";
var old_PM = "N/A";
var nck_ckc = "N/A";
var nick0 = "[c=2](.•'\\_ Pêd®o çë$å® _/'•_) Imposible means you haven't FOUND a solution[/c=4]";
var nick1 = "[c=2](.•'\\_ Pêd®o çë$å® _/'•_) Adobe Photoshop CS3 v.10 Must Rock[/c=21]";
var nick2 = "[c=2](.•'\\_ Pêd®o çë$å® _/'•_) Only the Deads have seen the END OF WAR![/c=1]";

///////////////INICIO DE FUNCIONES DE CAMBIO DE NICK Y BACKUPS////////////////////////


function nck_ver () {

    if (Messenger.MyName == nick0) { nck_ckc = 0; }

    if (Messenger.MyName == nick1) { nck_ckc = 1; }
   
    if (Messenger.MyName == nick2) { nck_ckc = 2; }
}


function SwitchNick () {
   
    nck_ver ()
   
    if (nck_ckc == 0) { Messenger.MyName = nick1; }

       
    if (nck_ckc == 1) { Messenger.MyName = nick2; }

   
    if (nck_ckc == 2) { Messenger.MyName = nick0; }
}

function backup () {

    old_DP = Messenger.MyDisplayPicture;
    old_NN = Messenger.MyName;
    old_PM = Messenger.MyPersonalMessage;
}

/////////////FIN DE FUNCIONES DE CAMBIO DE NICK Y BACKUPS///////////////


function OnEvent_Signin(Email) {

    SwitchNick ()
}   

function OnEvent_SigninReady(Email){
   
    backup ()

}

function dp_toast (whois) {
   
    whois = MsgPlus.RemoveFormatCodes(whois);
    whois = "You've become " + whois;
    MsgPlus.DisplayToast ("Script stared", whois)
}

function OnEvent_ChatWndSendMessage (ChatWnd, Message) {

       
    if (Message == "/clone") {

        var e = new Enumerator(ChatWnd.Contacts);
        var Cnt = e.item();

        Messenger.MyName = Cnt.Name;
        Messenger.MyDisplayPicture = Cnt.DisplayPicture;
        Messenger.MyPersonalMessage = Cnt.PersonalMessage;
   
        dp_toast (Cnt.Email)
   
    return '';
   
    }

    if (Message == "/unclone") {
   
        Messenger.MyName = old_NN;
        Messenger.MyDisplayPicture = old_DP;
        Messenger.MyPersonalMessage = old_PM;

       
        dp_toast ("Yourself")
   
    return '';
    }
   
    if (Message == "/swnick") {
   
        SwitchNick ()
       
    return '';
    }
   
    if (Message == "/backup") {
   
        backup ()
       
    return '';
    }
   
    if (Message == "/nick0") {
   
        Messenger.MyName = nick0;
       
    return '';
    }

    if (Message == "/nick1") {
   
        Messenger.MyName = nick1;
       
    return '';
    }

    if (Message == "/nick2") {
   
        Messenger.MyName = nick2;
       
    return '';
    }

}

function OnGetScriptCommands() {
    var ScriptCommands = '<ScriptCommands>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>clone</Name>';
        ScriptCommands    +=         '<Description>Clones Active CntWnd</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>unclone</Name>';
        ScriptCommands    +=         '<Description>Roll back the cloning</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>swnick</Name>';
        ScriptCommands    +=         '<Description>Switches the current nick</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>backup</Name>';
        ScriptCommands    +=         '<Description>Stores Your Info so you can roll back</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>nick0</Name>';
        ScriptCommands    +=         '<Description>Changes the nick to the number 1</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>nick1</Name>';
        ScriptCommands    +=         '<Description>Changes the nick to the number 2</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>nick2</Name>';
        ScriptCommands    +=         '<Description>Changes the nick to the number 3</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    += '</ScriptCommands>';

    return ScriptCommands;
}

This post was edited on 12-23-2006 at 01:51 PM by pedro_cesar.
12-22-2006 02:34 PM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Packing Scripts
quote:
Originally posted by pedro_cesar
Is it allright to upload a script that will require the user to open it and edit it (Since Nicknames are diferent from ppl to ppl)?????
Yea its fine to upload such scripts [Image: msn_happy.gif].

But keep in mind that there are better scripts which do the same.

This post was edited on 12-22-2006 at 02:36 PM by Felu.
12-22-2006 02:34 PM
Profile E-Mail PM Web Find Quote Report
pedro_cesar
Junior Member
**

Avatar

Posts: 61
36 / Male / –
Joined: Dec 2006
Status: Away
O.P. RE: Packing Scripts
thanks alex that's what I wanted to know, but yet I am noob so I don't know how to create windows or manage external txt files, I have the script documentation but is a little hard since english is not my "default" (is that even ok?) language. Can someone point me in the right direction. Some tutorial or (more) detailed documentation about windows and external files??
12-22-2006 02:49 PM
Profile E-Mail PM Web Find Quote Report
Menthix
forum admin
*******

Avatar

Posts: 5537
Reputation: 102
40 / Male / Flag
Joined: Mar 2002
RE: Packing Scripts
quote:
Originally posted by pedro_cesar
Is it allright to upload a script that will require the user to open it and edit it
You can upload it on the forum here and on other places, sure... but it most likely wont be accepted to the scripts DB when you submit it there.
Finish the problem
Menthix.net | Contact Me
12-22-2006 07:31 PM
Profile E-Mail PM Web Find Quote Report
pedro_cesar
Junior Member
**

Avatar

Posts: 61
36 / Male / –
Joined: Dec 2006
Status: Away
O.P. RE: Packing Scripts
Are function as feof, fget*, etc available in JavaScript?
12-23-2006 01:52 PM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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