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

Help with script...
Author: Message:
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
RE: Help with script...
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Sender, ChatMsg, ChatType)
{
if (ChatMsg.toLowerCase().indexOf("nick") > -1) {
Nick = Nick + 1;
Debug.Trace("Added one to count.");
ChatWnd.SendMessage("The Nick Count is now at: " + Nick);
}
}



And that checks for any case as well.

BTW, if you just store it as a variable then the "nick count" will be lost whenver the plugin is stopped, I recommend saving to a file or the registry on uninitialize then loading on initialize. ;)

This post was edited on 06-25-2006 at 10:18 AM by alexp2_ad.
06-25-2006 10:14 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help with script... - by GrimReapa on 06-25-2006 at 10:11 AM
RE: Help with script... - by absorbation on 06-25-2006 at 10:12 AM
RE: Help with script... - by alexp2_ad on 06-25-2006 at 10:14 AM
RE: Help with script... - by GrimReapa on 06-25-2006 at 10:17 AM
RE: Help with script... - by Eljay on 06-25-2006 at 10:17 AM
RE: Help with script... - by ThunderStorm on 06-25-2006 at 10:28 AM
RE: RE: Help with script... - by CookieRevised on 06-25-2006 at 11:56 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