INTERACT FORUM

Windows => Plug-in Development => Topic started by: Matt on February 17, 2003, 09:49:13 am

Title: Media Center 9 SDK
Post by: Matt on February 17, 2003, 09:49:13 am
Before release, we will update several parts of the MC 9 SDK.

However, until then, you can get and set any field in the MC database using:

IMJFileAutomation->Set(STRING strField, STRING strValue)
IMJFileAutomation->Get(STRING strField, BOOL bFormated)

The field list is here:

http://ftp://ftp.jriver.com/pub/downloads/music/tmp/MJFields.h

Hope that helps people a bit.  Thanks!
Title: Re: Media Center 9 SDK
Post by: KingSparta on February 17, 2003, 10:32:07 am
No Sample VB Code To Look At?

Title: Re: Media Center 9 SDK
Post by: Matt on February 17, 2003, 11:18:49 am
I think if you have a file (the thing with Artist, Album, etc.), you should be able to just put a dot in VB and it'll show Get and Set.

Just make sure you're using the latest .tlb from the Media Center directory.
Title: Re: Media Center 9 SDK
Post by: KingSparta on February 18, 2003, 03:20:10 am
this might sound dumb to you guys but

Matt said

>> Just make sure you're using the
>> latest .tlb from the Media Center directory.

I did pull up some of the visual basic files in notepad and i do see one of them pointing to the TLB file (since i started with the now vanished Busybox VB project) but if i was to start a OCX file clean how would i tell Visual basic to point to the TLB file?

Matt: Maybe this will tell you the level of programing and i need all the help i can get. a VB sample will surely Help (when you are done working on the SDK).

Please
Title: Re: Media Center 9 SDK
Post by: drosoph on February 18, 2003, 04:54:45 am
King:  Dont forget about adding "Field Choosers" to the Chart Finder PLUGIN (I will help if you want :) ) ...

I'd love to have a "Charted At" field instead of using the "Comment" field :)

Title: Re: Media Center 9 SDK
Post by: Matt on February 18, 2003, 05:01:12 am
In VB 6 try this:

VB -> Project -> References ->Browse -> Media Jukebox.tlb

Then make sure "Media Jukebox" (or similar) is checked in the list.
Title: Re: Media Center 9 SDK
Post by: KingSparta on February 18, 2003, 09:52:01 am
Quote
King:  Dont forget about adding "Field Choosers" to the Chart Finder PLUGIN (I will help if you want :) ) ...

I'd love to have a "Charted At" field instead of using the "Comment" field :)



I will hold you to the "Help" part

If it was not for the Busybox sample i would have still been looking at a blank screen.

======================================

Thanks Matt never Knew that option was there.