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.
Posts: 3658 Reputation: 61
36 / /
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
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.