What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help creating my first script

Help creating my first script
Author: Message:
Pai
Full Member
***

w00t !

Posts: 203
Reputation: 2
– / Male / –
Joined: Sep 2003
RE: Help creating my first script
code:
function flash(){
for (i = 0; i < 10; i++) {
Messenger.MyName = "[c=40]" + contactsname + "[/c]";
Messenger.MyName = "[c=0]" + contactsname + "[/c]";
}


function OnEvent_Initialize(MessengerStart)
{

var contactsname = Messenger.MyName ;
var savedname = contactsname ;
contactsname = MsgPlus.RemoveFormatCodes(contactsname);

}

function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
if (Message == "!flash") {
flash();
Messenger.MyName = savedname ;
}
}

function OnEvent_Uninitialize(MessengerExit)
{
}


That's the correct syntax (you can compare what's wrong with your code). But that won't work I think, you want it to flash 10 times but your nick will change so quickly that it won't even change to your contacts... You could use timers, to wait 500ms or so to change the color of your nick.
07-22-2006 05:51 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help creating my first script - by edmarriner on 07-22-2006 at 05:31 PM
RE: Help creating my first script - by foaly on 07-22-2006 at 05:43 PM
RE: Help creating my first script - by Pai on 07-22-2006 at 05:51 PM
RE: Help creating my first script - by edmarriner on 07-22-2006 at 06:27 PM
RE: Help creating my first script - by The_Joker on 07-22-2006 at 06:32 PM
RE: Help creating my first script - by edmarriner on 07-22-2006 at 06:33 PM
RE: Help creating my first script - by The_Joker on 07-22-2006 at 06:38 PM
RE: Help creating my first script - by 4penguino on 07-22-2006 at 06:50 PM
RE: Help creating my first script - by Silentdragon on 07-22-2006 at 07:00 PM
RE: Help creating my first script - by Aeryn on 07-22-2006 at 09:28 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