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:
GrimReapa
New Member
*

Avatar

Posts: 2
Joined: Jun 2006
O.P. Help with script...
I'm trying to make a simple script (for my first time) that will show how many times I have recieved a message with "Nick" in it... but at the moment I only know how to get it to check if the whole message is Nick...
How would i change it so that if any part of the message contained "Nick" then it would update the count?

Current Code:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Sender, ChatMsg, ChatType)
{
    if (ChatMsg == "Nick") {
    Nick = Nick + 1;
    Debug.Trace("Added one to count.");
    ChatWnd.SendMessage("The Nick Count is now at: " + Nick);
    }
    if (ChatMsg == "nick") {
    Nick = Nick + 1;
    Debug.Trace("Added one to count.");
    ChatWnd.SendMessage("The Nick Count is now at: " + Nick);
    }
}
06-25-2006 10:11 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