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:
Mokdeabar
New Member
*


Posts: 3
Joined: Oct 2007
O.P. Plug in/script to search tompstar.com for music?
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

This post was edited on 10-07-2007 at 06:22 PM by WDZ.
10-07-2007 06:01 PM
Profile E-Mail PM Find Quote Report
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
Mokdeabar
New Member
*


Posts: 3
Joined: Oct 2007
O.P. RE: Plug in/script to search tompstar.com for music?
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!
10-07-2007 06:55 PM
Profile E-Mail PM Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: RE: Plug in/script to search tompstar.com for music?
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.
10-07-2007 07:08 PM
Profile E-Mail PM Find Quote Report
Mokdeabar
New Member
*


Posts: 3
Joined: Oct 2007
O.P. RE: Plug in/script to search tompstar.com for music?
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.
10-07-2007 07:10 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