How to set up a now playing "script" in foobar2000

Nov 01, 2006 13:18

UPDATED VERSION: for foobar2000 v0.9.5.1 and higher.

k, since people ask me this a lot, here's a quick tutorial. I'm doing it with foobar 0.9 because 0.8.3 is discontinued and not supported, even though foobar 0.8.3 is sort of cooler imo :P

OK STEP 1: Find the Preferences window. Easy.



STEP 2: Create your now-playing script.



First click on "Display -> Title Formatting" on the left, then head over to the "Copy command" tab on the right. There's probably something already there. Just in case you need it later, comment it out by adding "//" to the beginning of the line. Then put whatever text you want your now playing script to use in a separate line. You can see that that's exactly what I did in the screenshot above. My now-playing text is the following, if you're too lazy to make your own and just want to copy it:

/me np: [%list_index%. ][%artist% - ]%title% '['%playback_time%/%length%']'[ .:. ['#'%tracknumber%[/%totaltracks%], ][%album%[ '['disc %discnumber%']']]][ .:. %bitrate% Kb/s][ .:. %codec%][ .:. %samplerate% Hz[ %channels%]]

If you want to make your own, here's some tips: enclosing something in brackets, [], will make it resolve as nothing if anything inside produces an error or doesn't exist. Notice how I used that in my string. Where you place spaces is important too - you can make them disappear or reappear based on what information the currently playing song has, etc. The actual variable names are pretty easy to guess. Figure it out :) If you need help, you can always refer to these two pages about "title formatting strings", as they're called: (intro | reference).

STEP 3: Set a hotkey.



First click on "General -> Keyboard Shortcuts" on the left, and then click "Add New" underneath the "Assigned Shortcuts" listbox. Type "copy name(s)" in the "Filter List By:" just to make it easier to find, and then click "[context / now playing] -> Copy Name(s)" as shown. Then underneath that, click in the text box and hit some obscure hotkey that no other sane program would ever need (I chose shift+ctrl+alt+win+z - on QWERTY those or all right next to each other so you can just mash it or something lol - though I use Dvorak). Make sure to check the "Global" checkbox. Then click "Save All", then "Close". You're done - now you can hit your hotkey, followed by ctrl+v, in any program whatsoever, and get a nice now playing string. I mostly use it on IRC but it works on other IM clients as well, or even in email if you're feeling particularly retarded. :P The only drawback is that it replaces whatever was on your clipboard, but I find that it doesn't bother me that much. And now there's no need to use horrible garbage like AMIP, which is overly complicated and actually reads tag info from the file itself, instead of just reading it from the player, in many cases, or so I'm led to believe. Ugh. Luckily foobar2000 provides a convenient mechanism to export info about the currently playing song :) Enjoy...

-fs

tutorial, out, foobar2000

Next post
Up