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
:S
The plusWnd is here but nothing happens too~
quote:
//個人專用 : 解讀MSN遊戲Uno的密碼, 可用於個人用途

var WndColor;
var uno = '0';

function OnEvent_Initialize(MessengerStart)
{
}

function OnPlusWndEvent_CtrlClicked(PlusWnd,ControlId) {
    if(ControlId == "Red") {
        ChatWnd.SendMessage('紅色');
        PlusWnd.Close(0);
    }
    else if(ControlId == "Blue") {
        ChatWnd.SendMessage('藍色');
        PlusWnd.Close(0);
    }
    else if(ControlId == "Yellow") {
        ChatWnd.SendMessage('黃色');
        PlusWnd.Close(0);
    }
    else if(ControlId == "Green") {
        ChatWnd.SendMessage('綠色');
        PlusWnd.Close(0);
    }
}

function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind)
{
if(Message == 'r') {
    MsgPlus.DisplayToast('Uno顏色解讀', '紅色');
    }
else if(Message == 'R') {
    MsgPlus.DisplayToast('Uno顏色解讀', '紅色');
    }
else if(Message == 'y') {
    MsgPlus.DisplayToast('Uno顏色解讀', '黃色');
    }
else if(Message == 'Y') {
    MsgPlus.DisplayToast('Uno顏色解讀', '黃色');
    }
else if(Message == 'g') {
    MsgPlus.DisplayToast('Uno顏色解讀', '綠色');
    }
else if(Message == 'G') {
    MsgPlus.DisplayToast('Uno顏色解讀', '綠色');
    }
else if(Message == 'b') {
    MsgPlus.DisplayToast('Uno顏色解讀', '藍色');
    }
else if(Message == 'B') {
    MsgPlus.DisplayToast('Uno顏色解讀', '藍色');
    }
if(Message == 'bk') {
    MsgPlus.DisplayToast('Uno牌類解讀', '禁止');
    }
else if(Message == 'Bk') {
    MsgPlus.DisplayToast('Uno牌類解讀', '禁止');
    }
else if(Message == 'bK') {
    MsgPlus.DisplayToast('Uno牌類解讀', '禁止');
    }
else if(Message == 'Bk') {
    MsgPlus.DisplayToast('Uno牌類解讀', '禁止');
    }
switch (Message){
    case "wt cl?":
    PlusWnd = MsgPlus.CreateWnd("Window.xml","WndColor");
    break;
    }
}


I want the result wil be like this:
Click the first button, send 'red'(without quotes) to my contact, click the second button, send 'blue' and so on.
To do this, I think ChatWnd.SendMessage can help me, but it doesn't work and the pluswnd didn't disappeared after clicking those buttons.

Please help me to check the whole js file. Give 100000000 thanks!

This post was edited on 12-10-2006 at 05:50 AM by Kutar.
12-10-2006 05:49 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