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" xsichemaLocation="">
<Window Id="WndColor" Version="1">
<Attributes>
<Caption>顏色決定</Caption>
</Attributes>
<TitleBar>
<Title>
<Text>顏色決定</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>顏色決定</Caption>
</Control>
<Control xsi:type="ButtonControl" Id="Red">
<Position Top="305" Left="10" Width="50"/>
<Caption>紅色</Caption>
</Control>
<Control xsi:type="ButtonControl" Id="Blue">
<Position Top="305" Left="70" Width="50"/>
<Caption>藍色</Caption>
</Control>
<Control xsi:type="ButtonControl" Id="Green">
<Position Top="305" Left="130" Width="50"/>
<Caption>綠色</Caption>
</Control>
<Control xsi:type="ButtonControl" Id="Yellow">
<Position Top="305" Left="190" Width="50"/>
<Caption>黃色</Caption>
</Control>
</Controls>
</Window>
</Interfaces>
Js File
quote:
//個人專用 : 解讀MSN遊戲Uno的密碼, 可用於個人用途
var WndColor;
var uno = '0';
function OnEvent_Initialize(MessengerStart)
{
}
function OnWndColorEvent_CtrlClicked(PlusWnd,ControlId) {
if(ControlId == "Red") {
ChatWnd.SendMessage('紅色');
WndColor.Close(0);
}
else if(ControlId == "Blue") {
ChatWnd.SendMessage('藍色');
WndColor.Close(0);
}
else if(ControlId == "Yellow") {
ChatWnd.SendMessage('黃色');
WndColor.Close(0);
}
else if(ControlId == "Green") {
ChatWnd.SendMessage('綠色');
WndColor.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("ChoicesWnd.xml","WndColor");
break;
}
}
Thanks for all your relpies(Sorry for my poor English, I am Macanese).