What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request]part of script

[request]part of script
Author: Message:
Kutar
New Member
*


Posts: 13
Joined: Aug 2006
O.P. RE: [request]part of script
Let us check the whole but incomplete files now.....
XML
quote:
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="">
    <Window Id="WndColor" Version="1">
        <Attributes>
            <Caption>&#38991;&#33394;&#27770;&#23450;</Caption>
        </Attributes>
        <TitleBar>
            <Title>
                <Text>&#38991;&#33394;&#27770;&#23450;</Text>
            </Title>
        </TitleBar>
        <Position Width="200" Height="355"/>
        <DialogTmpl/>
        <Controls>
            <Control xsi:type="StaticControl" Id="LblText" Visible="true" Enabled="true">
                <Position Top="10" Left="10" Width="100" Height="15"/>
                <Color>
                    <GlobalColor>heading</GlobalColor>
                </Color>
                <Font>
                    <Bold>true</Bold>
                    <Size>11</Size>
                </Font>
                <Caption>&#38991;&#33394;&#27770;&#23450;</Caption>
            </Control>
            <Control xsi:type="ButtonControl" Id="Red">
                <Position Top="305" Left="10" Width="50"/>
                <Caption>&#32005;&#33394;</Caption>
            </Control>
            <Control xsi:type="ButtonControl" Id="Blue">
                <Position Top="305" Left="70" Width="50"/>
                <Caption>&#34253;&#33394;</Caption>
            </Control>
            <Control xsi:type="ButtonControl" Id="Green">
                <Position Top="305" Left="130" Width="50"/>
                <Caption>&#32160;&#33394;</Caption>
            </Control>
            <Control xsi:type="ButtonControl" Id="Yellow">
                <Position Top="305" Left="190" Width="50"/>
                <Caption>&#40643;&#33394;</Caption>
            </Control>
        </Controls>
    </Window>
</Interfaces>


Js File

quote:
//&#20491;&#20154;&#23560;&#29992; : &#35299;&#35712;MSN&#36938;&#25138;Uno&#30340;&#23494;&#30908;, &#21487;&#29992;&#26044;&#20491;&#20154;&#29992;&#36884;

var WndColor;
var uno = '0';

function OnEvent_Initialize(MessengerStart)
{
}

function OnWndColorEvent_CtrlClicked(PlusWnd,ControlId) {
    if(ControlId == "Red") {
        ChatWnd.SendMessage('&#32005;&#33394;');
        WndColor.Close(0);
    }
    else if(ControlId == "Blue") {
        ChatWnd.SendMessage('&#34253;&#33394;');
        WndColor.Close(0);
    }
    else if(ControlId == "Yellow") {
        ChatWnd.SendMessage('&#40643;&#33394;');
        WndColor.Close(0);
    }
    else if(ControlId == "Green") {
        ChatWnd.SendMessage('&#32160;&#33394;');
        WndColor.Close(0);
    }
}

function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind)
{
if(Message == 'r') {
    MsgPlus.DisplayToast('Uno&#38991;&#33394;&#35299;&#35712;', '&#32005;&#33394;');
    }
else if(Message == 'R') {
    MsgPlus.DisplayToast('Uno&#38991;&#33394;&#35299;&#35712;', '&#32005;&#33394;');
    }
else if(Message == 'y') {
    MsgPlus.DisplayToast('Uno&#38991;&#33394;&#35299;&#35712;', '&#40643;&#33394;');
    }
else if(Message == 'Y') {
    MsgPlus.DisplayToast('Uno&#38991;&#33394;&#35299;&#35712;', '&#40643;&#33394;');
    }
else if(Message == 'g') {
    MsgPlus.DisplayToast('Uno&#38991;&#33394;&#35299;&#35712;', '&#32160;&#33394;');
    }
else if(Message == 'G') {
    MsgPlus.DisplayToast('Uno&#38991;&#33394;&#35299;&#35712;', '&#32160;&#33394;');
    }
else if(Message == 'b') {
    MsgPlus.DisplayToast('Uno&#38991;&#33394;&#35299;&#35712;', '&#34253;&#33394;');
    }
else if(Message == 'B') {
    MsgPlus.DisplayToast('Uno&#38991;&#33394;&#35299;&#35712;', '&#34253;&#33394;');
    }
if(Message == 'bk') {
    MsgPlus.DisplayToast('Uno&#29260;&#39006;&#35299;&#35712;', '&#31105;&#27490;');
    }
else if(Message == 'Bk') {
    MsgPlus.DisplayToast('Uno&#29260;&#39006;&#35299;&#35712;', '&#31105;&#27490;');
    }
else if(Message == 'bK') {
    MsgPlus.DisplayToast('Uno&#29260;&#39006;&#35299;&#35712;', '&#31105;&#27490;');
    }
else if(Message == 'Bk') {
    MsgPlus.DisplayToast('Uno&#29260;&#39006;&#35299;&#35712;', '&#31105;&#27490;');
    }
switch (Message){
    case "wt cl?":
    PlusWnd = MsgPlus.CreateWnd("ChoicesWnd.xml","WndColor");
    break;
    }
}


Thanks for all your relpies(Sorry for my poor English, I am Macanese).

This post was edited on 12-10-2006 at 01:58 AM by Kutar.
12-10-2006 01:57 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[request]part of script - by Kutar on 12-09-2006 at 04:35 PM
RE: [request]part of script - by Felu on 12-09-2006 at 06:23 PM
RE: [request]part of script - by foaly on 12-09-2006 at 06:55 PM
RE: [request]part of script - by Matti on 12-09-2006 at 07:29 PM
RE: [request]part of script - by Kutar on 12-10-2006 at 01:57 AM
RE: [request]part of script - by Felu on 12-10-2006 at 04:28 AM
RE: [request]part of script - by Kutar on 12-10-2006 at 05:18 AM
RE: [request]part of script - by Felu on 12-10-2006 at 05:36 AM
RE: [request]part of script - by Kutar on 12-10-2006 at 05:49 AM
RE: [request]part of script - by Felu on 12-10-2006 at 05:58 AM
RE: [request]part of script - by Kutar on 12-10-2006 at 06:13 AM


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