I want to display random artist images in a Track Info Panel. All my artist images are in one folder named like that: artist1.jpg artist2.jpg artist3.jpg eg. Foo Fighters1.jpg Foo Fighters2.jpg Foo Fighter3.jpg Tool1.jpg Tool2.jpg ...
Now I've done something like this:
CODE
$puts(ArtistImg,D:\Foobar2000\ArtistImages\%artist%$eval($mod($rand(),2)+1).*)
The problem is, that there must be 2 (or 3 or 4 dependent on the number in the code, here it is 2) pics of every artist in the folder.
Is there a way to find out how many artist images of the now-playing artist in the folder, and then random these pics.
So the "2" in my code must become a variable...
Does anybody have an idea or a code for me?
Thanks in advance and sorry for my bad english.