[Question] Now playing/Display picture. |
Author: |
Message: |
cirix
New Member
Posts: 10
Joined: Jun 2006
|
RE: [Question] Now playing/Display picture.
I havent read entire post, but currently im working on a Script that currently only works with Wianmp, but I belive its easily implemented to other media players, one of the "problems" I have encountered is that Winamp does not have a very good implementation of the Album Art, so I have been using Samurize ( www.samurize.com ) to get the Cd covers, and my script executing Samurize Server, I also have a vb6 app that does this but I belive the script will have a better Implemntation , also someone had done an iTunes DP program some time ago, I will get the link later, and the iTunes scrip also has the ability to do Album Art to display. But I dont use iTunes for everyday, just to sync the iPod.
|
|
06-29-2006 06:50 PM |
|
|
cirix
New Member
Posts: 10
Joined: Jun 2006
|
RE: [Question] Now playing/Display picture.
Here is the scrip, Im onli having a problem with the second time I dont know whats wrong, the problem is that I need a pause between executing samurizeserver and setting the DP notice the quoted parts:
quote: var objShell = new ActiveXObject("Shell.Application");
var one;
var changemedia;
var two;
function OnEvent_MyMediaChange(changemedia){
playerHwnd = Interop.Call('User32','FindWindowW','Winamp v1.x',0);
var lBuffer = Interop.Call('user32', 'GetWindowTextLengthW', playerHwnd)+1;
var sBuffer = Interop.Allocate(2*(lBuffer+2));
var Title = Interop.Call('user32', 'GetWindowTextW', playerHwnd, sBuffer, lBuffer);
one = sBuffer.ReadString(0);
Debug.Trace('sBuffer: '+ one );
//Debug.Trace('sBuffer: '+sBuffer.ReadString(0));
objShell.ShellExecute('C:\\Program Files\\Samurize\\SamurizeServer.exe', "i=mcover c=msnc.ini close", "", "", 1);
MsgPlus.AddTimer ("check",3000);
}
function OnEvent_Timer(TimerId)
{
if (TimerId == "check")
{
Debug.Trace( one);
var lBuffer = Interop.Call('user32', 'GetWindowTextLengthW', playerHwnd)+1;
var sBuffer = Interop.Allocate(2*(lBuffer+2));
var Title = Interop.Call('user32', 'GetWindowTextW', playerHwnd, sBuffer, lBuffer);
two = sBuffer.ReadString(0);
Debug.Trace('sBuffer: '+ two + one);
if (two == one)
{
objShell.ShellExecute('C:\\Program Files\\Samurize\\SamurizeServer.exe', "i=mcover c=msnc.ini", "", "", 1);
//MsgPlus.AddTimer ("samur",2000);
}
//function OnEvent_Timer(TimerId)
//{
//if (TimerId == "samur")
//{
//Debug.Trace('CHANGE ');
//Messenger.MyDisplayPicture = "C:\\Program Files\\Samurize\\samurizeoutput.png";
//objShell.ShellExecute('C:\\Program Files\\Samurize\\SamurizeServer.exe close', "i=mcover c=msnc.ini -close", "", "", 1);
//}
//}
}
}
function OnEvent_Uninitialize(MessengerExit)
{
objShell.ShellExecute('C:\\Program Files\\Samurize\\SamurizeServer.exe', "i=mcover c=msnc.ini trayiconvisible=0 close", "", "", 1);
}
This post was edited on 06-29-2006 at 06:56 PM by cirix.
|
|
06-29-2006 06:54 PM |
|
|
Ža7oŽ
New Member
Sharp Media Owner
Posts: 7
36 / / –
Joined: Apr 2006
|
RE: [Question] Now playing/Display picture.
As i'm Devoleping Sharp Media (a Media Player)
i allway's like to intagrate things into Messenger's.
while reading this sparked an idea.
i can do this from my player, without askign the user for an image.
if anyone is intrested you can pick up a light version of Sharpmedia at
www.5070live.com
if you do use it, check for update's often it just might be released very soon.
|
|
06-29-2006 07:39 PM |
|
|
Voldemort
Veteran Member
Posts: 3504 Reputation: 49
– / – /
Joined: Jul 2005
Status: Away
|
RE: [Question] Now playing/Display picture.
Guys, this thing of Now Playind album art to DP is already done.... only works for WMP.... Its a script by Veggie, Sadly, I cant link you to it, its on a private subforum...
*All posts are a purely speculative hypothesis based on abstract reasoning.
Not my daughter, you bitch!
|
|
06-29-2006 08:11 PM |
|
|
noroom
Full Member
www.noroom.tk
Posts: 107 Reputation: 4
Joined: Sep 2003
|
RE: [Question] Now playing/Display picture.
This was implemented weeks ago by CAD RC4.
www.closetosoftware.com
Check the forums for the latest build.
This post was edited on 06-29-2006 at 08:13 PM by noroom.
|
|
06-29-2006 08:13 PM |
|
|
can16358p
Junior Member
WLM + MP!L User
Posts: 58
34 / / –
Joined: Oct 2005
Status: Away
|
RE: [Question] Now playing/Display picture.
I could now sign in and saw my untested script working
It's very simple, take it, develop it, publish under your name if you want. I did it to use myself.
|
|
06-29-2006 08:17 PM |
|
|
cirix
New Member
Posts: 10
Joined: Jun 2006
|
RE: [Question] Now playing/Display picture.
I havent tried CD Art Display In a long time, well it does basicly the same thing as my current samurize scrip, but I remember when I tried it I whould only get pictures for entire folders so if you have various singel mp3s in the same folder it whould not work, while Samurize had a folder tu dump all the single mp3 covers, I dont know if CD Art Display RC4 has this feature. I will try it.
|
|
06-29-2006 08:50 PM |
|
|
can16358p
Junior Member
WLM + MP!L User
Posts: 58
34 / / –
Joined: Oct 2005
Status: Away
|
RE: [Question] Now playing/Display picture.
I had a half built code, I've edited it a bit more and this is more reliable. Just a simple solution, but at least a solution, and works absolutely great with me!
code: //Music DP by can16358p
//Make your Display Picture the cover of the album of the song you are listening to!
//Edit the path to your My Music folder
//For any reason, if another filename is used for album arts instead of folder.jpg, change it there
//Tested with Windows Media Player 11, but should work with any configuration that has the songs and the album art file in My Music/Artist/Album/
//Do anything you want with this code. Play with it, change things in it.
var initial="";
var path="D:/Documents/My Music/";
var imgfile="";
var imgname="folder.jpg";
var name="";
var artist="";
var album="";
var id="";
var existcheck=new ActiveXObject("Scripting.FileSystemObject");
var sinfo="<ScriptMenu>"
sinfo+="<MenuEntry Id=\"mddp\">Make current DP default</MenuEntry> ";
sinfo+="</ScriptMenu>";
function OnEvent_Initialize(MessengerStart){
initial=Messenger.MyDisplayPicture;
Debug.trace("Script Started!");
Debug.trace("Default DP: "+initial);
}
function OnEvent_MenuClicked(id,loc,orig){
if(id=="mddp"){
initial=Messenger.MyDisplayPicture;
Debug.trace("Default DP Updated.");
Debug.trace("Default DP: "+initial); }
}
function OnGetScriptMenu(loc){
return sinfo;
}
function OnEvent_Signin(mailaddrr){
var initial=Messenger.MyDisplayPicture;
Debug.trace("Initial Image is: "+initial);
if(Messenger.MyStatus>=3){
makedp(Messenger.MyCurrentMedia);
}
}
function OnEvent_Uninitialize(MessengerExit)
{
Messenger.MyDisplayPicture=initial;
}
function OnEvent_MyMediaChange(newsong){
makedp(newsong);
}
function makedp(str){
str=str.substring(str.indexOf("{1}\\0")+5);
song=str.substring(0,str.indexOf("\\0"));
str=str.substring(str.indexOf("\\0")+2);
artist=str.substring(0,str.indexOf("\\0"));
str=str.substring(str.indexOf("\\0")+2);
album=str.substring(0,str.indexOf("\\0"));
str=str.substring(str.indexOf("\\0")+2);
id=str.substring(0,str.indexOf("\\0"));
str=str.substring(str.indexOf("\\0")+2);
imgfile=path+artist+"/"+album+"/"+imgname;
if(existcheck.FileExists(imgfile) && song!=""){
Debug.trace("Artist: "+artist+", Song: "+song+", Album: "+album);
Messenger.MyDisplayPicture=path+artist+"/"+album+"/"+imgname;
}else{
Debug.trace("File not found! Changing DP to "+initial);
Messenger.MyDisplayPicture=initial;
}
}
|
|
06-29-2006 10:47 PM |
|
|
-dt-
Scripting Contest Winner
;o
Posts: 1819 Reputation: 74
36 / /
Joined: Mar 2004
|
RE: [Question] Now playing/Display picture.
quote: Originally posted by alexp2_ad
and in general I think album art is usually stored in the same folder as the music as folder.jpg for winamp and wmp...? I'm sure -dt- is up to that..
not a clue , Ill look into it if not ill download and cache it from amazon
Happy Birthday, WDZ
|
|
06-29-2006 11:07 PM |
|
|
noroom
Full Member
www.noroom.tk
Posts: 107 Reputation: 4
Joined: Sep 2003
|
RE: [Question] Now playing/Display picture.
quote: Originally posted by cirix
I dont know if CD Art Display RC4 has this feature. I will try it.
It does. It can also load covers from the ID3v2 tags.
|
|
06-30-2006 06:57 AM |
|
|
Pages: (3):
« First
«
1
[ 2 ]
3
»
Last »
|
|
|