What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Script codes

Script codes
Author: Message:
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Script codes
code:
var websites = new Array('web1.com','web2.net');
var links = new Array('link1','link2');

function OnEvent_ChatWndSendMessage(oChatWnd, sMessage){
if(sMessage === wesites[0]){
MsgPlus.DisplayToast(websites[0], websites[0]);
}else if(sMessage === websites[1]){
MsgPlus.DisplayToast(websites[1], websites[1]);
}
if(sMessage === links[0]){
MsgPlus.DisplayToast(link[0], link[0]);
}else if(sMessage === links[1]){
MsgPlus.DisplayToast(link[1], link[1]);
}
websites[0] is web1.com ;)

there is better ways of doing it than what i did but it will still work ;)



quote:
Originally posted by .2007
no but if the ''website'' was differant for eatch one

well it still wouldnt work because of having multi-functions ;) as i said you _cant_ have more than 1 of the same

This post was edited on 01-14-2007 at 12:52 AM by NanaFreak.
01-14-2007 12:50 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script codes - by plus on 01-14-2007 at 12:36 AM
RE: Script codes - by NanaFreak on 01-14-2007 at 12:38 AM
RE: Script codes - by plus on 01-14-2007 at 12:40 AM
RE: Script codes - by NanaFreak on 01-14-2007 at 12:50 AM
RE: Script codes - by plus on 01-14-2007 at 01:35 AM
RE: Script codes - by NanaFreak on 01-14-2007 at 01:37 AM
RE: Script codes - by RaceProUK on 01-14-2007 at 01:55 PM


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