What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Automatically insert double // when it's an unrecognized command?

Automatically insert double // when it's an unrecognized command?
Author: Message:
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
O.P. Automatically insert double // when it's an unrecognized command?
quote:
---------------------------
Messenger Plus! Live
---------------------------
The command you entered was not recognized.
If the message was not meant to be a command, insert a second '/' at its beginning.
---------------------------
OK   
---------------------------

If /dog is not a command, send //dog

Possible?

Posted this in Scripting because I assumed it might be possible via scripting.

Thanks,
-Sam
01-16-2010 10:25 PM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: Automatically insert double // when it's an unrecognized command?
I don't think it would be possible as a script wouldn't know if another script is using a certain command. The only way I could think of is somehow reading the commands list and checking that, but not all scripts add their commands to it in the first place
<Eljay> "Problems encountered: shit blew up" :zippy:
01-16-2010 10:27 PM
Profile PM Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
O.P. RE: Automatically insert double // when it's an unrecognized command?
Ok, how about an array, if (command is not in array) double // it.

array= ('/busy', '/online')

:p?
01-16-2010 10:37 PM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: Automatically insert double // when it's an unrecognized command?
That will break the other scripts though that use custom commands :p
<Eljay> "Problems encountered: shit blew up" :zippy:
01-16-2010 10:41 PM
Profile PM Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
O.P. RE: Automatically insert double // when it's an unrecognized command?
:zippy: okay then.

Thanks anyways :p
01-16-2010 10:50 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Automatically insert double // when it's an unrecognized command?
The only way I can think of is to somehow catch the error message coming from Plus!. Because that is the only way you are sure that no other script uses the command. It speaks for itself that it would be a rather clumsy approach though.

Not to mention that some (not well made scripts) do not return properly when they handle a command. So, eventhough they have handled the command, Plus! still thinks the command is invalid. A lot of such examples can be found in scripts from first-time/beginner scripters.

This post was edited on 01-17-2010 at 01:31 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-17-2010 01:28 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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