Browse By Art 4.9 [MM2]

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

llimllib
Posts: 6
Joined: Tue Oct 03, 2006 8:26 am

Post by llimllib »

Trix,

The first time I open a "browse by art" node, I get an internet explorer dialog, asking me if I want to allow the activex control to run. Once I say yes, everything works correctly. However, the second time I try any browseByArt node, I get an error (in a mediaMonkey dialog box):

Code: Select all

Error #-2147024726 -
File: "C:\Program Files\MediaMonkey\Scripts\Auto\BrowseByArt.vbs", Line: 1190 Column: 6
Followed by another mediamonkey dialog box, once I click "ok"

Code: Select all

Error executing script event.
That error number is 458921 - MAXINT on my particular system, though that seems unlikely to help. I'm running Browse By Art 4.1, MM 2.5.4.978, IE 6.0, and Win XP Pro with all updates applied. I think I've disabled all ActiveX safety in my Internet settings (which scares me), and I run no antivirus or anti-malware programs. (I am behind a corporate firewall).

I'm also a programmer who, in the dark past, worked with VBA, but has never touched MediaMonkey script code before. I would gladly work with you to resolve this error, since I really like BrowseByArt when it works. Email me at bill.mill at gmail.com if you're interested.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Well if you open BrowseByArt.vbs in a text editor, and find line 1190...

Code: Select all

SDB.WebControl.Navigate data.Item("htm")
... then you could add a line before it, like this...

Code: Select all

Call outsql(data.Item("htm"))
SDB.WebControl.Navigate data.Item("htm")
... this will create an extra logfile "BrowseByArt.vbs_sql.log" which I use for my own debugging purposes. This will then list each page that is navigated to. When you get the error, what is the last line in this logfile?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
llimllib
Posts: 6
Joined: Tue Oct 03, 2006 8:26 am

Post by llimllib »

trixmoto wrote:Well if you open BrowseByArt.vbs in a text editor, and find line 1190...

Code: Select all

SDB.WebControl.Navigate data.Item("htm")
... then you could add a line before it, like this...

Code: Select all

Call outsql(data.Item("htm"))
SDB.WebControl.Navigate data.Item("htm")
... this will create an extra logfile "BrowseByArt.vbs_sql.log" which I use for my own debugging purposes. This will then list each page that is navigated to. When you get the error, what is the last line in this logfile?
The entire contents of BrowseByArt.vbs_sql.log follow:

Code: Select all

C:\Program Files\MediaMonkey\Scripts\Auto\artwork\browse.htm
C:\Program Files\MediaMonkey\Scripts\Auto\artwork\browse.htm
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Oh, and does this file exist? Can you open it in your browser?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
llimllib
Posts: 6
Joined: Tue Oct 03, 2006 8:26 am

Post by llimllib »

trixmoto wrote:Oh, and does this file exist? Can you open it in your browser?
Once I click on a BrowseByArt node, it does exist. Before that, it does not exist.

Perhaps the error is being thrown because ActiveX or MediaMonkey doesn't want to let BrowseByArt overwrite the existing browse.htm? This would explain the error's occurrence on the second but not the first execution.
Last edited by llimllib on Tue Oct 03, 2006 11:03 am, edited 1 time in total.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

I presume this is an ActiveX issue rather than a MediaMonkey issue, as you are getting ActiveX warning messages. Have you tried setting the "My Computer" zone to enable initialising scripts?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
llimllib
Posts: 6
Joined: Tue Oct 03, 2006 8:26 am

Post by llimllib »

trixmoto wrote:I presume this is an ActiveX issue rather than a MediaMonkey issue, as you are getting ActiveX warning messages. Have you tried setting the "My Computer" zone to enable initialising scripts?
Negative - I don't have a "My Computer" zone. Am I missing this setting somewhere?
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

The "My Computer" zone is not shown, but you can edit it directly in the registry...

1) Run regedit.exe
2) Goto HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0
3) Modify key 1201 = 0
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
llimllib
Posts: 6
Joined: Tue Oct 03, 2006 8:26 am

Post by llimllib »

trixmoto wrote:The "My Computer" zone is not shown, but you can edit it directly in the registry...

1) Run regedit.exe
2) Goto HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0
3) Modify key 1201 = 0
geez... why didn't I think of that? Everything works now. Utter nonsense.

<grumble> sometimes I hate Windows </grumble>

Anyway, thanks for the help.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

No problem. Just your computer making sure I wasn't trying to do something bad with my script! :D
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
llimllib
Posts: 6
Joined: Tue Oct 03, 2006 8:26 am

Feature Request

Post by llimllib »

When I click on an album, I'd like to stay inside the BrowseByArt node.

What currently happens is that I get transported to the Album node, which for me is really long. This is annoying because I then have to scroll a long ways up to get to something interesting.

I'd like to be able to click on an album to check it out, or queue it, then go right back to album cover browsing, with no long scroll in the middle.
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

You can click the "Back" button (above the tree view) or use ALT+LEFT to go back.

Also check the browse by art options (tools - options- library - browsebyart settings) and you enable/disable the actions icons to queue/play the album.
mcoelho
Posts: 2
Joined: Fri Oct 06, 2006 12:40 pm

Post by mcoelho »

Hi guys...

I'm new here and I really dont know how to download or to copy the Browse by Art's code.

Can somebody helps me?

Thanks...
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

If you click on the link in my signature then click on the Scripts section you can search for it or find it in the OnStartup scripts subsection, here: http://trixmoto.net/mm/scripts.php?id=4
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
mcoelho
Posts: 2
Joined: Fri Oct 06, 2006 12:40 pm

Post by mcoelho »

Thank you Trixmoto!

I'm using your script by now, and i'm really loving it!

=)
Locked