Shoutbox

Can any nice person help me with the basic?(still need help) - 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: Can any nice person help me with the basic?(still need help) (/showthread.php?tid=75375)

Can any nice person help me with the basic?(still need help) by Drakal on 06-15-2007 at 07:05 PM

I have just started scripting but it dont goes so good for me:( Can anyone help me with the basic?
I only need I menu and when i click on a text in the menu a window will apper that only has a close button that work:D Not so much... so u that know more than me can help me... just put the codes in here :D or send a file(s) that i can download...

I can do a menu but it dont works to click on and i can do the widow but it dont apper when i click on the menu:S the close button on the window dont work:(

thx for helping:D.. (if someone now will help me :P)


RE: Can any nice person help me with the basic? by Chris4 on 06-15-2007 at 07:08 PM

If you haven't already, download the Official Scripting Documentation. There's a section called "Your First Script", it's pretty good. Then you can read about all the other stuff too. :)


RE: Can any nice person help me with the basic? by Drakal on 06-15-2007 at 07:13 PM

hm... but i still want the codes here... im not so good at english so it is hard to me to read... :/
i know some about scripting... i just need that i asked for and i can the rest(not all but..)

thx anyway.. for trying to help:D i like person that help or tryes to help:)


RE: Can any nice person help me with the basic?(still need help) by Matti on 06-16-2007 at 08:28 AM

Well, first of all you'll need to learn the basics of JScript. Microsoft JScript looks a bit like JavaScript, so if you find a tutorial about JavaScript (like on w3schools.com) you can learn the basics from there if you want, like syntax, variables, functions, loops, statements,... You don't need to learn about the functions which require the script to be ran in a HTML page, because Plus! doesn't work with HTML. :P

If you understood the basics, you'll need to investigate the Scripting Documentation. I can assure you, for every script developer, the documentation is his most holy thing. It contains information about the available objects, functions, properties and events and has XML schemes with information about what you can use in a Plus! interface file. Most people get lost in the syntax part of a function. An example of a  syntax information:

code:
MsgPlus::DisplayToast
[boolean] DisplayToast(
    [string] Title,
    [string] Message,
    [string,optional] SoundFile,
    [string,optional] Callback,
    [var,optional] CallbackParam
);
The first line indicates the name of the function (DisplayToast) and the type of the return value, in this case it'll return a Boolean (true or false). Check the return value of the function in the documentation to learn more about what is actually returned.
The following lines contain information about the different parameters the function accepts. In this case, the first parameter should be a string object (e.g. "My Script"). The last three parameters are optional, which means that it's not necessary to specify those. However, if you don't specify enough parameters (so if you forget to specify a needed parameter), the function will fail and gives you an error.
With this information, you can understand how to call the function:
code:
MsgPlus.DisplayToast("My Toast", "Hello world!");
or if you want to make use of the CallBack functionality:
code:
function DoOpenChat(sEmail) {
    return Messenger.OpenChat(sEmail);
}

MsgPlus.DisplayToast("My Toast", "Click here to open a conversation with John!", "", "DoOpenChat", "john@hotmail.com");
And that concludes the first lesson in Messenger Plus! Live scripting. :)
RE: Can any nice person help me with the basic?(still need help) by Drakal on 06-16-2007 at 11:11 AM

hm.. i wanted the codes...

but i created my script on my own... but the close buttons dont want to work for me. I type the codes i trought was right but it dont works...

Now i only need help with the close buttons.
It most be the easiest thing in world but i cant get it to work :(