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:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Gettin data from "/" commands
quote:
Originally posted by DarkGhost
if (/^\/([^\s\/]+)\s*([\s\S]*)$/.exec(sMessage) !== null) { whats this mean?
It is a regular expression.

Download and read the JScript 5.6 Documentation > "Regular Expression Object" and "Regular Expression Syntax"

There are also many threads on these forums which are about regular expressions, including snippets and code examples.

To see what the above regular expression does, see the link posted by markee which explains it.

In short: this one checks if the message of the user is a command and it splits up the message into the command part and the optional parameter part.

quote:
Originally posted by DarkGhost
also is there a way i can just like make it so the person who typed /command can only see the message
Show a messagebox to the user. Or show a Messenger Plus! toast with the MsgPlus.DisplayToast function, etc....

;)




PS: Try not to double post. Instead, click on the edit button beneath your last post if you want to add something before someone replies.

PS: always read the given links; They are given for a reaon. Try to use the search function of the forum.

This post was edited on 05-23-2007 at 01:05 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-23-2007 12:56 AM
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