Page 4 of 32

Posted: Sun Jun 25, 2006 9:37 am
by trixmoto
I can't replicate this, but I will see what I can do. Have you got ScrobblerDJ installed as well? Or are you using the built-in AutoDJ. If so, these don't play well together, you should switch off the others to use the AutoAlbumDJ.

Posted: Sun Jun 25, 2006 10:14 am
by Speed Pete
No - I do not use ScrobblerDJ, and the internal AutoDJ is disabled of course.

Posted: Mon Jun 26, 2006 5:36 am
by Speed Pete
So... I roughly understood your script and wilk try to find the problem. Can you just tell me, how to do some testing? I want to make a message box with an ok button and perhaps some text for information. I know the "msgbox(...)" from VB, but these script is no real VB, isn't it?

Posted: Mon Jun 26, 2006 5:48 am
by MoDementia
There should be at least one like this in the code somewhere

Code: Select all

msgTmp = SDB.MessageBox("239-" & strOrigPathFilename & "-" , mtInformation, Array(mbOK))

Posted: Mon Jun 26, 2006 6:27 am
by trixmoto
You can also just use...

Code: Select all

MsgBox "debugtext"

Posted: Mon Jun 26, 2006 7:15 am
by Speed Pete
Thanks - this works fine for me.

The problem is the following: I had erased the database and added about 10 albums. Now I looked at the variables "ind" and "tot": ind changes in the range 1 to 10 I think, and tot is 0 at every time. (I check this just after creating these variables and before testing for existence, rating etc.)

So I took a look at the database with access. My AlbumID starts with 293!!! So it is clear that no Albums with IDs 1 to 10 can be found. Any idea how to repair this?

And BTW: what das the command "randomize" without any parameters?

Posted: Mon Jun 26, 2006 7:41 am
by trixmoto
I find DevGuru always have the best (and often simplest) explanations: http://www.devguru.com/technologies/vbs ... omize.html

I am working on a new version of this script now which should fix your problem. I had some other stuff lined up to do for it anyway, you've just bumped it up my to-do list! :)

Posted: Mon Jun 26, 2006 8:22 am
by Speed Pete
trixmoto wrote:I am working on a new version of this script now which should fix your problem. I had some other stuff lined up to do for it anyway, you've just bumped it up my to-do list! :)
Cool! I will wait for it. These are really good news. While waiting I will try to learn enough from your script to realize my idea...

Thank you for your worthful work!

Posted: Thu Jun 29, 2006 9:27 am
by trixmoto
@SpeedPete - your problem is now fixed (working on the release now) - Abel actually suggested the solution at the top of page 3 but I forgot to implement it. It wasn't till I finished implementing it that I found his post again though - oh well!

Someone requested a Genre option (can't remember who). Did they want this to be included in the MinTracks? (So the album would have to have the specfied number of tracks which matched both the minimum rating and the genre, or the album would have to have the specified number of tracks which matched the minimum rating and have at least one song from that genre?)

Posted: Thu Jun 29, 2006 2:20 pm
by trixmoto
New version (2.0) is now available from my website!

N.B. Please remove all entries for AutoAlbumDJ from the Scripts.ini file!

Fixes include:
- Check database for valid album id range (thanks to Abel)
- Improved memory efficiency and speed
- Abort after specified number of unsuccessful attempts
- Added option to specify genre
- Added option sheet (options stored in .ini file)

Posted: Fri Jun 30, 2006 5:06 am
by sasapuksic
First of all, thanks for this great script which is one of my favorites, must say. :) Second, I have a question ... Is it posible to select more than one ganre if I use separator, comma ...

Thanks again trixmoto!

:D

Posted: Fri Jun 30, 2006 7:18 am
by trixmoto
It is not currently possible to select more than one.

It is an SQL LIKE string, so if you wanted to select "BritPop" as well as "Pop" you could set the Genre as "%Pop", however this would also find "Rock/Pop" as well (for example).

Good idea though, I'll look at included a comma separated list in the next version. :)

Posted: Sat Jul 15, 2006 10:02 am
by trixmoto
New version (2.1) is now available from my wesite.

The new version allows the Genre option to be a comma separated list (no spaces around the commas!).

Please note, this means that my previous tip of including % will now longer work, but then again, it doesn't need to! :)

Posted: Sun Jul 16, 2006 10:24 am
by sasapuksic
Link doesnt work ... :cry:

Posted: Mon Jul 17, 2006 3:39 am
by trixmoto
Sorry, my website has now been updated correctly so the link now works! :oops: