What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Getting partial String (argument to command.)

Getting partial String (argument to command.)
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Getting partial String (argument to command.)
you could either use

code:
Message = Message.split(" ");
Debug.Trace(Message[0]); //The command
Debug.Trace(Message[1]); //The Parameter

Mulitple spaces can cause errors
or if you know the length of the command

code:
Command = Message.substr(0,5); //example
Parameter = Message.substr(6,Message.length); //Rest of Message


The best way however is to use a RegExp on the Message variable. I don't how these work but if you use the search function, CookieRevised usually advises to do this and has posted numerous examples
<Eljay> "Problems encountered: shit blew up" :zippy:
12-01-2006 02:54 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Getting partial String (argument to command.) - by AITEE on 12-01-2006 at 02:46 AM
RE: Getting partial String (argument to command.) - by Spunky on 12-01-2006 at 02:54 AM
RE: Getting partial String (argument to command.) - by phalanxii on 12-01-2006 at 05:56 AM
RE: Getting partial String (argument to command.) - by markee on 12-01-2006 at 06:14 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