Ok so you use WMP and want your now playing info to display on any program with the press of a button? Here is how I did it. (Windows XP and WMP11, Should work on wmp9 and up)
Keyboard with some extra buttons (media, volume, favorites, email, www, etc etc).
WMP 9 or higher.
Download a plugin for WMP called http://www.wmplugins.com/ItemDetail.aspx?ItemID=357.
Extract it to your "C:\program files\windows media player\" folder (or where ever you have WMP installed).
register the dll with regsvr32, to do this goto start>run and type in
regsvr32 "C:\program files\windows media player\np_plugin.dll"
(This plugin makes a text file in the same directory with the song info inside of the text file.)
Open WMP and goto Tools>plugins>options
in the plugins panel goto Background and select the "Now Playing Plugin" and click properties, change w/e options you want EXCEPT the 2'nd box that says "C:\Program Files\Windows Media Player\np_info.txt" This Needs to stay the same for now.
Ok now that the plugin is installed onto the next step.
Open the folder "C:\program files\windows media player\" and make a new text file and copyand paste this VBScript into it (everything between the ======== lines)
Set WshShell = WScript.CreateObject("WScript.Shell")
fspec="C:\Program Files\Windows Media Player\Np_info.txt"
save and close the new text file, and rename it to np.vbs
(If you cannot change the extention from txt to vbs, google how to view/change known file extentions)
Ok now you have a script that when ran will read the first line of np_info.txt and press enter., next step.
Download and install http://www.microsoft.com/windowsxp/Downloads/powertoys/Xppowertoys.mspx for windows XP.
Once installed, Open it and goto Explorer > Command keys and choose a button on your keyboard you never use (I chose the EMAIL button).
click the change button, and select the 3rd box that says "Run a custom program when this key is pressed" and put in
"C:\program files\windows media player\np.vbs"
press OK then APPLY then OK again to close tweakUI.
now for the last step
Open up regedit Start>run, type in regedit
When regedit is open, press control+F or goto edit>find, make sure all 3 check boxes are checked, and do a search for "C:\program files\windows media player\np.vbs" (this might take a min depending on the speed of your computer), when it finds the key it should say
Shellexecute "C:\program files\windows media player\np.vbs"
Double click shellexecute and remove the quotes from "C:\program files\windows media player\np.vbs"
then press ok.
Your done! Now you should beable to press w/e command button (EMAIL for me) and the currently playing song's info will be displayed and entered into the active text field!!
;WMP Is playing: Kiss - 05 Love gun
Hope this helps someone, and the explanation isn't too screw'd up.
Thanks for this, been looking everywhere. I'd just like to add that it all works fine in Vista x64 (Using the 32bit player) so long as the path in the vbscript is amended to "C:\Program Files (x86)\Windows Media Player\Np_info.txt". Obviously TweakUI doesn't work with Vista but my (most?) keyboards come with dedicated software to reassign buttons anyway - also I didn't carry out step 4, seems to work fine without that.
I don't understand a single symbol from that vbscript. Can the output be added to? For example I'd like to see the album name in there, or maybe some punctuation/parentheses arount the output?
Powered by Invision Power Board
© Invision Power Services