so now I'm ended with this script:
Code:
<font color='#FFFF00'>'['<font color='#00FF00'>
$if(%isplaying%,
$if(%ispaused%,
Paused
,
Now playing
)
: </font>%artist% -
<a href="text://<font color='#FFFF00'>
::::: Foobar2000 now playing component :::::
</font><br><br>
<font color='#00FF00'>
<a href=''chatcmd:///start http://www.last.fm/music/
$replace(%artist%, ,+)
''>%artist%</a> - %title% '['%length%']'</font><br>
<font color='#00FFFF'>
[Album:
<a href=''chatcmd:///start http://www.last.fm/music/
$replace(%artist%, ,+)
/
$replace(%album%, ,+)
''>%album%</a>
<br>][%date% <br>]
Track number: %tracknumber% [ / totaltracks%]<br>
[Disc: %discnumber% / [%totaldiscs%]<br>]
%codec%[ / %bitrate%][ / %channels%]</font>">%title%</a>']'</font>
,
stopped
)
you should put it in "Formatting string" section of this foobar component, put path to scripts folder and script name in filename section.
after this you'll get auto generated script like this in your ao script folder:
Code:
<font color=#FFFF00>[<font color=#00FF00>Now playing: </font>Android Lust - <a href="text://<font color=#FFFF00>: : : : : Foobar2000 now playing component : : : : :</font><br><br><font color=#00FF00><a href='chatcmd:///start http://www.last.fm/music/Android+Lust'>Android Lust</a> - Another Void (Wasp Queen) [5:02]</font><br><font color=#00FFFF>Album: <a href='chatcmd:///start http://www.last.fm/music/Android+Lust/Stripped+&+Stitched'>Stripped & Stitched</a><br>2006 <br>Track number: 01<br>Disc: 1 / 1<br>AAC / 126 / stereo</font>">Another Void (Wasp Queen)</a>]</font>
it contains links too last.fm for artist and album, but I hadn't checked them because have no running copy of AO atm.