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

2 Scripting questions.
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: 2 Scripting questions.
First question:

Try this:

code:
// code retrieves first word ONLY

var FirstWord;

function OnEvent_CatWndReceiveMessage(pChatWnd,sMessage,mOrigin,kMessageKind) {
if(mOrigin != Messenger.MyName) { // Optional!!
switch(sMessage.charAt(0)) { // I prefer charAt fo single characters than substring(0,1)
case "~":
FirstWord = sMessage.split(" ",1);
break;
}
}
}


Workin' on your 2nd..

This post was edited on 05-18-2008 at 05:33 PM by SmokingCookie.
05-18-2008 05:25 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
2 Scripting questions. - by apex on 05-18-2008 at 05:08 PM
RE: 2 Scripting questions. - by SmokingCookie on 05-18-2008 at 05:25 PM
RE: 2 Scripting questions. - by apex on 05-18-2008 at 05:30 PM
RE: 2 Scripting questions. - by SmokingCookie on 05-18-2008 at 05:34 PM
RE: RE: 2 Scripting questions. - by apex on 05-18-2008 at 05:53 PM
RE: 2 Scripting questions. - by SmokingCookie on 05-18-2008 at 05:57 PM
RE: 2 Scripting questions. - by apex on 05-18-2008 at 06:05 PM
RE: 2 Scripting questions. - by SmokingCookie on 05-18-2008 at 06:30 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