What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [RELEASE] Script Searcher

[RELEASE] Script Searcher
Author: Message:
Ashylay
Junior Member
**

Intermediate Scripter

Posts: 70
Reputation: 1
– / Male / –
Joined: Mar 2007
O.P. [RELEASE] Script Searcher
Okay extremely simple script i just edited my google one basically you use this script to search the scripts database for scripts. Saves loading the url.

All you have to do is in a conversation type "/search [SCRIPT NAME HERE]"

i cba packaging so heres the source. Just create a new script and c&p

code:
// Feel free to use any part of this script
// Created by Ashylay
// This text can eb removed but I would like it if you kept it here in credit for me.

function OnGetScriptCommands(){
    var commands = "<ScriptCommands>";
    commands += " <Command>"
    commands += " <Name>search</Name>"
    commands += " <Description>Search for MSG+ Scripts easily!</Description>"
    commands += " </Command>"
    commands += "</ScriptCommands>"
    return commands;
}


function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
    if(/^\/search\s(.+)$/i.test(Message)) {
        var Param = RegExp.$1;
        MsgPlus.DisplayToast("Script Searcher", "You have searched for "+Param+" Please wait.");
        new ActiveXObject("WScript.Shell").Run("http://www.msgpluslive.net/scripts/search/?q="+escape(Param));
        return "";
    }
}

Edit: I have updated the script so if you want to edit it yourself you can easily.


Edit the red parts to change /search to /[Whatever you like]

Edit the parts in clue to change the URL (remember when changing the url only place the part just before the text you type comes in PM for more info on this.

This post was edited on 04-15-2007 at 01:15 AM by Ashylay.
04-12-2007 05:36 PM
Profile E-Mail PM Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [RELEASE] Script Searcher
nice work.

i like the search extension for Firefox :)

.png File Attachment: screenshot.PNG (12.15 KB)
This file has been downloaded 150 time(s).
04-12-2007 06:04 PM
Profile E-Mail PM Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: [RELEASE] Script Searcher
Neat and simple script, but I think the command should be "/searchscript" or something, as search is generally..
You could also do a script that searches the script area of these forums with [release] in the title! :)

vikke
4 8 15 16 23 42
04-12-2007 06:31 PM
Profile E-Mail PM Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
38 / Male / Flag
Joined: Aug 2004
Status: Away
RE: [RELEASE] Script Searcher
quote:
Originally posted by vikke
Neat and simple script, but I think the command should be "/searchscript" or something, as search is generally..
You could also do a script that searches the script area of these forums with [release] in the title! :)

vikke
The code for the RELEASE search would be similar to the posted code.
code:
if(Message == '/searchscriptrelease') {
new ActiveXObject("WScript.Shell").Run("http://shoutbox.menthix.net/basicsearch.php?do=search&sfrm=1&keywords=release&username=&fid=39&lookin=sbj&sort=t");
}
This is just an example, but it should work.

Also, to change the command from the original code, simply change:
code:
if(/^\/search\s(.+)$/i.test(Message))
the bold part to "/searchscript" or whatever you like.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

04-12-2007 06:48 PM
Profile PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
RE: [RELEASE] Script Searcher
I think you might want to have a look at CookieRevised's reply to [Release] Exit WLM for improving your regular expression (though using the test method is better than the exec method used by Cookie in my opinion).  Apart from that, good job.
[Image: markee.png]
04-13-2007 01:34 AM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [RELEASE] Script Searcher
quote:
Originally posted by markee
(though using the test method is better than the exec method used by Cookie in my opinion).  Apart from that, good job.
there is a difference between the two and each has its uses. With the test method the global properties of the RegExp are not updated. It are these properties which are used further, so you need to use the exec method.
.-= A 'frrrrrrrituurrr' for Wacky =-.
04-13-2007 07:21 AM
Profile PM Find Quote Report
Ashylay
Junior Member
**

Intermediate Scripter

Posts: 70
Reputation: 1
– / Male / –
Joined: Mar 2007
O.P. RE: [RELEASE] Script Searcher
Updated it incase you wanted to edit some parts of it yourself.
04-15-2007 01:16 AM
Profile E-Mail 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