What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Plug in/script to search tompstar.com for music?

Plug in/script to search tompstar.com for music?
Author: Message:
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: Plug in/script to search tompstar.com for music?
It is illegal to download music that you don't own. But listen to the stream isn't for you, just the site is illegal.
This is a great site though, and I will make a script for it. :)
I got to go now, sorry. But here's the incomplete script. (Parts of it is working!)

code:
var strURL = "http://www.tompstar.com/?pg=search_result";

function OnGetScriptMenu(Location)
{
  var ScriptMenu = "<ScriptMenu>";
  ScriptMenu += "<MenuEntry Id=\"MnuBrowse\">Browse</MenuEntry>";
  ScriptMenu += "<MenuEntry Id=\"MnuSearch\">Search</MenuEntry>";
  ScriptMenu += "<Separator/>";
  ScriptMenu += "<MenuEntry Id=\"MnuAbout\">About</MenuEntry>";
  ScriptMenu += "</ScriptMenu>";

  return ScriptMenu;
}

function OnEvent_MenuClicked(MenuItemId, Location, OriginWnd)
{
  if(MenuItemId == "MnuBrowse")
  {
    var objShell = new ActiveXObject("Shell.Application");
    objShell.ShellExecute(strURL, "", "", "open", 1);
  }
  else if(MenuItemId == "MnuSearch")
  {
    Search("Here In Your Arms");
  }
  else
  {
      MsgPlus.DisplayToast("Tompstar", "This script is written by Vikke.");
  }
}

function Search(Query)
{
  var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  xmlhttp.open("POST", strURL, true);
  xmlhttp.onreadystatechange = function(){
    if(xmlhttp.readyState == 4){
      var strResult = xmlhttp.responseText;
    }
  }
  xmlhttp.setRequestHeader("status",status);
  xmlhttp.send();
}


This post was edited on 10-07-2007 at 06:44 PM by vikke.
10-07-2007 06:20 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Plug in/script to search tompstar.com for music? - by Mokdeabar on 10-07-2007 at 06:01 PM
RE: Plug in/script to search tompstar.com for music? - by vikke on 10-07-2007 at 06:20 PM
RE: Plug in/script to search tompstar.com for music? - by Mokdeabar on 10-07-2007 at 06:55 PM
RE: RE: Plug in/script to search tompstar.com for music? - by vikke on 10-07-2007 at 07:08 PM
RE: Plug in/script to search tompstar.com for music? - by Mokdeabar on 10-07-2007 at 07:10 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