Shoutbox

Plug in/script to search tompstar.com for music? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Plug in/script to search tompstar.com for music? (/showthread.php?tid=78041)

Plug in/script to search tompstar.com for music? by Mokdeabar on 10-07-2007 at 06:01 PM

Hey, there is a site I know called Tompstar.com, where you can play/download music legally. Is there a way to make a script for Messenger Plus Live to have a search of their music to locate music I'd like to download/listen to? A lot of the time I'm not at home and I'd like to listen to the music at work or somewhere, or share a link to a song with a friend, this would make it easier then having to open the site to do it. Besides, if it can be done, I'm sure people would find it fun and useful.

I have no experience with scripting, etc, so I'd not know where to start... or maybe there's already a script out there that I missed?

Anyways, if anyone here can help me, that would be great. Thanks for your time and efforts.

What would also be a good idea that I just thought of, would there be a way to upload files/songs to the site from the plug in too? Just a thought, for ease of use


RE: Plug in/script to search tompstar.com for music? by vikke on 10-07-2007 at 06:20 PM

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();
}


RE: Plug in/script to search tompstar.com for music? by Mokdeabar on 10-07-2007 at 06:55 PM

Hey, thanks for your swift response!

Of course the browse and search doesn't work 100% unless you're logged in, I hope they'll change that a bit! Unless there's a way to log into the site from the plug in?

I'm not sure how to use the search you built in... or is that one of the works in progress? If this works it would be great :D

Thanks again! Keep us updated on your script work, you never know, spreading it might get you famous among MS Plus users haha!


RE: RE: Plug in/script to search tompstar.com for music? by vikke on 10-07-2007 at 07:08 PM

I can work on it a bit more now.

quote:
Originally posted by Mokdeabar
Hey, thanks for your swift response!

Of course the browse and search doesn't work 100% unless you're logged in, I hope they'll change that a bit! Unless there's a way to log into the site from the plug in?

I don't know how to fix this issue.

quote:
I'm not sure how to use the search you built in... or is that one of the works in progress? If this works it would be great :D

Thanks again! Keep us updated on your script work, you never know, spreading it might get you famous among MS Plus users haha!

The search feature isn't done yet, sorry. I don't know if it's possible this way, since you have to be signed in, I will try.
RE: Plug in/script to search tompstar.com for music? by Mokdeabar on 10-07-2007 at 07:10 PM

well, maybe if someone's already signed into the site it'll bring up the search results, people just have to sign in... it's worth a try I guess.