What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [RELEASE, in a way]My google script.

[RELEASE, in a way]My google script.
Author: Message:
Ashylay
Junior Member
**

Intermediate Scripter

Posts: 70
Reputation: 1
– / Male / –
Joined: Mar 2007
O.P. [RELEASE, in a way]My google script.
Okay ive been working on it for about an hour (remember IM NEW) and is quite handy. I cba submitting to site etc. so here is the script. Basically allows you to search google & google images by typing:

/google Frogs [Seraches google for frogs]
/googleimage Frogs [Searches google images for frogs]

Its for anybody to claim however I would like it if you did calim and submit you left some thanks to me :')

code:
function OnGetScriptCommands(){
    var commands = "<ScriptCommands>";
    commands += " <Command>"
    commands += " <Name>google</Name>"
    commands += " <Description>Search google easily!</Description>"
    commands += " </Command>"
    commands += " <Command>"
    commands += " <Name>googleimage</Name>"
    commands += " <Description>Search google images easily!</Description>"
    commands += " </Command>"
    commands += "</ScriptCommands>"
    return commands;
}


function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
    if(/^\/google\s(.+)$/i.test(Message)) {
        var Param = RegExp.$1;
        MsgPlus.DisplayToast("Goole Searcher", "You have searched for "+Param+" Please wait.");
        new ActiveXObject("WScript.Shell").Run("http://www.google.co.uk/search?hl=en&q="+escape(Param));
        return "";
    }
    if(/^\/googleimage\s(.+)$/i.test(Message)) {
        var Param = RegExp.$1;
        MsgPlus.DisplayToast("Goole Image Searcher", "You have searched for "+Param+" Please wait.");
        new ActiveXObject("WScript.Shell").Run("http://images.google.co.uk/images?hl=en&q="+escape(Param));
        return "";
    }


Also thanks to the people who helped me in the thread I made about reading the message that was typed.

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


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [RELEASE, in a way]My google script.
good work :)

but there is a similar script:
http://www.msgpluslive.es/scripts/view/278-MultiBusqueda/

This post was edited on 04-01-2007 at 05:34 PM by felipEx.
04-01-2007 05:33 PM
Profile E-Mail PM Find Quote Report
Ashylay
Junior Member
**

Intermediate Scripter

Posts: 70
Reputation: 1
– / Male / –
Joined: Mar 2007
O.P. RE: [RELEASE, in a way]My google script.
Yeah I guessed there weould be another script but its my first script so Im not that botherd
04-01-2007 05:37 PM
Profile E-Mail PM Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [RELEASE, in a way]My google script.
ohh ^^
anyway your script works fine :)

code:
Interop.Call("shell32", "ShellExecuteW", ChatWnd.Handle, "open", "http://www.google.co.uk/search?hl=en&q="+escape(Param) , 0,0, 0)
//new ActiveXObject("WScript.Shell").Run("http://www.google.co.uk/search?hl=en&q="+escape(Param));



This post was edited on 04-01-2007 at 05:51 PM by felipEx.
04-01-2007 05:41 PM
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