[Question] Messenger Plus! Commands - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [Question] Messenger Plus! Commands (/showthread.php?tid=67760) [Question] Messenger Plus! Commands by Sana on 10-27-2006 at 11:03 PM
I'm new to scripting (and JavaScript >.>) so to test a couple things I just made a quick Shell script. code: And I used this to parse commands: code: So for example, I can type "/shell notepad" and it shells notepad.exe, or "/shell www.google.com" and it opens Google in my browser. It works in that it shells whatever parameter I specify, but it keeps giving me the Plus! error that I'm using an invalid command at the same time: quote: I want to eliminate this error message, since "/shell" is in fact the command that I'm trying to use (and it actually does shell my parameter). Any help would be appreciated. RE: [Question] Messenger Plus! Commands by pollolibredegrasa on 10-27-2006 at 11:16 PM Are there any errors in the script debugger? RE: [Question] Messenger Plus! Commands by Spunky on 10-27-2006 at 11:20 PM You may need to specify a paramater in the XML code =/ RE: [Question] Messenger Plus! Commands by Baggins on 10-28-2006 at 12:00 AM
code:or something like that RE: [Question] Messenger Plus! Commands by Plan-1130 on 10-28-2006 at 12:02 AM
It's because you didn't return anything, the code below should fix it... code:Remember there might be malicuous contacts in your list who can abuse it and therby doing harmful things to you or your computer (if not, contactlists like urs are very rare, try posting a flooder here) Also, your script seems to check for a lot of things, but it gets executed if you type "/blahh notepad" too. A shorter, and better code would be: code:And, I prefer to put a return before every bracket instead of putting it right behind the functionname or loop, it's up to you to decide what you think works easier, compare the previous one to thisone: code: RE: RE: [Question] Messenger Plus! Commands by Baggins on 10-28-2006 at 12:18 AM
quote:and also do this RE: [Question] Messenger Plus! Commands by Sana on 10-28-2006 at 12:35 AM
Thanks for the help. code: RE: [Question] Messenger Plus! Commands by Spunky on 10-28-2006 at 07:42 AM
quote: You can't sent commands to this script remotely so I don't see anyway that a contact could abuse this... Also, I know you were joking, but it may not be the best advice to tell someone to post a flooder Some people would misunderstand and do it RE: [Question] Messenger Plus! Commands by Plan-1130 on 10-29-2006 at 02:08 AM
Argh, you're right. I'm used to handling remote commands, which are catched in OnEvent_ChatWndReceiveMessage, thisone uses OnEvent_ChatWndSendMessage. |