What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Release] +Search (Version 1.2)

[Release] +Search (Version 1.2)
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: [Release] +Search (Version 1.0)
quote:
Originally posted by SpunkyLoveMuff
quote:
Originally posted by Plan-1130
make it work with commands too, like "/google <seach query>"
That'd only work with pre-defined browsers as I'd need to assign a command to each one.
No...

You/script don't need to do anything. It's the user who needs to define a command for it, but that is actually just the same.

Making commands in scripts is nothing more than sending some text to Plus! (to make them visible in the command helper window) and to check on the entered message in the chat window (to see if it is a command which your script reconizes).

But there is no difference between pre-defined commands and commands added by the user within your script, other than the latter being variable strings instead of pre-defined strings....

A statement like:
    If (message === "/mycommand") {}
is just the same as
    var usercommand = "/mycommand"
    If (message === usercommand) {}

The only difference being that you can change usercommand on the fly before doing the check because it is a variable (and thus read it from the user settings of the script for example; which also doesn't _need_ to be XML as markee suggested, it can be anything from the registry to a text file).


This post was edited on 12-27-2006 at 05:39 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-27-2006 05:35 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Release] +Search (Version 1.2) - by Spunky on 12-25-2006 at 10:52 PM
RE: [Release] +Search (Version 1.0) - by Plan-1130 on 12-25-2006 at 11:28 PM
RE: [Release] +Search (Version 1.0) - by CookieRevised on 12-26-2006 at 12:33 AM
RE: [Release] +Search (Version 1.0) - by Spunky on 12-26-2006 at 04:54 PM
RE: RE: [Release] +Search (Version 1.0) - by markee on 12-27-2006 at 05:21 AM
RE: RE: [Release] +Search (Version 1.0) - by CookieRevised on 12-27-2006 at 05:35 AM
RE: [Release] +Search (Version 1.2) - by Spunky on 07-18-2007 at 04:09 PM


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