Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
Joined: Apr 2006
Status: Away
|
RE: [request]part of script
code: //個人專用 : 解讀MSN遊戲Uno的密碼, 可用於個人用途
var WndColor;
var uno = '0';
function OnEvent_Initialize(MessengerStart)
{
}
function OnWndColorEvent_CtrlClicked(PlusWnd,ControlId) {
if(ControlId == "Red") {
MyChatWnd.SendMessage('紅色');
PlusWnd.Close(0);
}
else if(ControlId == "Blue") {
MyChatWnd.SendMessage('藍色');
PlusWnd.Close(0);
}
else if(ControlId == "Yellow") {
MyChatWnd.SendMessage('黃色');
PlusWnd.Close(0);
}
else if(ControlId == "Green") {
MyChatWnd.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?":
MyChatWnd = ChatWnd;
PlusWnd = MsgPlus.CreateWnd("Window.xml","WndColor");
break;
}
}
|
|