What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Script to parse user input

Script to parse user input
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Script to parse user input
I very strongly suggest you first read the official documentation. There it is very clearly explained how you do this basic stuff.

You can get the documentation by clicking on the menu "Files > Scripting Documentation" in the scripting editor.

If the help file is opened, navigate to the "Index" tab and click on "OnEvent_ChatWndSendMessage". There you'll see the whole explanation. Pay especially attention to "Return Value". It is this return value which will tell Plus! if the user has entered a recognized command or not and what the user will see after he entered a command.

A command is actually nothing more then just normal text. So the slash isn't actually needed; you can react on whatever you want. But to keep things simple and recognizable to the user, the consensus is that commands should always begin with a slash.

To learn how to add your own commands to the command list, see "Index > OnGetScriptCommands". Note that this has got nothing to do with actually letting Plus! recognize your commands, that is done in OnEvent_ChatWndSendMessage by the return value. OnGetScriptCommands simply adds your commands to the command list visible to the user, that's all. It's not mandatory, it is just good practice.

You can also take a look at existing small scripts.
;)

This post was edited on 12-06-2009 at 02:09 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-06-2009 02:06 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script to parse user input - by wiseguyxp on 12-06-2009 at 01:22 AM
RE: Script to parse user input - by CookieRevised on 12-06-2009 at 02:06 AM
RE: Script to parse user input - by wiseguyxp on 12-06-2009 at 03:22 AM
RE: Script to parse user input - by NanaFreak on 12-06-2009 at 12:45 PM
RE: Script to parse user input - by CookieRevised on 12-06-2009 at 04:51 PM
RE: Script to parse user input - by wiseguyxp on 12-07-2009 at 05:46 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