What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » script command error - "Command Requiers Parameter"

script command error - "Command Requiers Parameter"
Author: Message:
Baggins
Full Member
***

Avatar
B000ALFAZO

Posts: 387
Reputation: 13
29 / Male / Flag
Joined: Oct 2006
O.P. RE: RE: RE: script command error - "Command Requiers Parameter"
quote:
Originally posted by CookieRevised
quote:
Originally posted by billboy1001
actually now that i did take the time to read, and with a few modifications my script is working perfectly now.

EDIT: how can i make a regular expression to split "hello world, hi" into "hello" and "world, hi" will
code:
RegExp(/^\s+(\S+)\s+(.+)$/i).exec(sMessage)
do it?


teaching regular expressions via a post here is way to difficult. I suggest you read up on some tutorials. And start by learning the syntax of regular expressions as used in JScript:
* MSDN: Regular Expression Syntax
* MSDN: Regular Expression Object
* some unofficial tutorial
* etc...

The proper code for what you want could be something like:
code:
RegExp(/^(\S+)\s+(.+)$/i).exec(sMessage)
RegExp.$1 will be "hello"
RegExp.$2 will be "world, hi"

sweet, thank you
sorry bout the crap thing
10-23-2006 09:26 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 12:17 AM
RE: script command error - "Command Requiers Parameter" - by deAd on 10-23-2006 at 12:24 AM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 12:27 AM
RE: script command error - "Command Requiers Parameter" - by matty on 10-23-2006 at 12:47 AM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 12:53 AM
RE: script command error - "Command Requiers Parameter" - by matty on 10-23-2006 at 12:57 AM
RE: script command error - "Command Requiers Parameter" - by deAd on 10-23-2006 at 01:31 AM
RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 10:59 AM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 08:30 PM
RE: script command error - "Command Requiers Parameter" - by foaly on 10-23-2006 at 08:35 PM
RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 08:36 PM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 09:00 PM
RE: RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 09:24 PM
RE: RE: RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 09:26 PM
RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 09:14 PM
RE: RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 09:21 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