What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Gettin data from "/" commands

Gettin data from "/" commands
Author: Message:
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
RE: Gettin data from "/" commands
I don't know what method you use to trap "/" commands, but you normally use ChatWndSendMessage(Message).

Then the variable Message, is the whole message that was sent, including to bit after the parameter, so you can get all the data you want from there.

e.g.
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
var checkExpCommand = /^\/command/i
if ( checkExpCommand.test(Message) ) {
  Param = Message.replace(checkExpCommand, "");           
}
}

This post was edited on 05-22-2007 at 08:04 PM by saralk.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
05-22-2007 08:03 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Gettin data from "/" commands - by Lobo on 05-22-2007 at 07:46 PM
RE: Gettin data from "/" commands - by saralk on 05-22-2007 at 08:03 PM
RE: Gettin data from "/" commands - by vikke on 05-22-2007 at 08:05 PM
RE: Gettin data from "/" commands - by markee on 05-22-2007 at 08:59 PM
RE: Gettin data from "/" commands - by DarkGhost on 05-22-2007 at 11:41 PM
RE: Gettin data from "/" commands - by CookieRevised on 05-23-2007 at 12:09 AM
RE: Gettin data from "/" commands - by DarkGhost on 05-23-2007 at 12:32 AM
RE: Gettin data from "/" commands - by CookieRevised on 05-23-2007 at 12:56 AM
RE: Gettin data from "/" commands - by Lobo on 05-23-2007 at 07:14 PM
RE: Gettin data from "/" commands - by markee on 02-04-2008 at 11:52 AM
RE: Gettin data from "/" commands - by CookieRevised on 12-07-2009 at 01:39 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