INTERACT FORUM

Windows => Plug-in Development => Topic started by: John Gateley on January 23, 2006, 12:30:22 pm

Title: New Automation SDK document
Post by: John Gateley on January 23, 2006, 12:30:22 pm
Hi Y'all,

I just updated the Automation(Interface) SDK document. Let me know if you find any problems...

j
Title: Re: New Automation SDK document
Post by: KingSparta on January 23, 2006, 03:42:01 pm
Hi Y'all,

I just updated the Automation(Interface) SDK document. Let me know if you find any problems...

j


what was changed?
Title: Re: New Automation SDK document
Post by: John Gateley on January 23, 2006, 03:48:13 pm
I added some previously undocumented functions...

j
Title: Re: New Automation SDK document
Post by: Mr ChriZ on January 23, 2006, 06:42:36 pm
Is the MC TLB file still the same?
Title: Re: New Automation SDK document
Post by: KingSparta on January 23, 2006, 07:12:03 pm
Is the MC TLB file still the same?

i think that is updated allready, when you update your version of MC
Title: Re: New Automation SDK document
Post by: PollyQ on February 27, 2006, 01:55:34 pm
Thanks for the update!  Just one correction (so far ;D):

In the Out-of-proc initialization (VB) example, you need an "On Error" statement, e.g.,


Private Sub Form_Load()

' First try to get an already running object
On Error Resume Next
Set myobj = GetObject(, "MediaJukebox Application")

If Err.Number = 429 Then
    'Then, create a new object
    Set myobj = CreateObject("MediaJukebox Application")

End Sub


Thanks for the update!
Title: Re: New Automation SDK document
Post by: KingSparta on February 27, 2006, 02:19:58 pm
Thanks for the update!  Just one correction (so far ;D):

In the Out-of-proc initialization (VB) example, you need an "On Error" statement, e.g.,


Private Sub Form_Load()

' First try to get an already running object
On Error Resume Next
Set myobj = GetObject(, "MediaJukebox Application")

If Err.Number = 429 Then
    'Then, create a new object
    Set myobj = CreateObject("MediaJukebox Application")

End Sub


Thanks for the update!

Yes we talked about this before the VB6 sample has a problem, if you don't put a on error resume the project will stop running.
Title: Re: New Automation SDK document
Post by: Mr ChriZ on February 27, 2006, 02:45:49 pm
Does the GetObject ever return successfully for
any one at the moment?

I don't have VB6 installed at present,
but I can't get this to work under any other language.
Title: Re: New Automation SDK document
Post by: John Gateley on February 27, 2006, 03:24:10 pm
Thanks PollyQ, it's fixed.

j
Title: Re: New Automation SDK document
Post by: PollyQ on February 27, 2006, 05:02:07 pm
Does the GetObject ever return successfully for
any one at the moment?

This is working for me using VB .NET 2003.
Title: Re: New Automation SDK document
Post by: Mr ChriZ on February 28, 2006, 03:03:29 pm
Intriguing,
Cheers I'll take another look.
Title: Re: New Automation SDK document
Post by: Zoner on March 02, 2006, 12:02:54 pm
I see you've added a function string MJPlaylistAutomation::Get(string bstrProperty).  No properties are listed, and I'm not really sure what these are.  Can you give us an example of a property name?  Thanks.

Title: Re: New Automation SDK document
Post by: John Gateley on March 03, 2006, 11:15:56 am
Hi Zoner,

Property names are up to you, for whatever you want to associate with a playlist. We recommend using names like "Zoner: MyProperty" to avoid accidental conflict with other properties.

j
Title: Re: New Automation SDK document
Post by: Zoner on March 03, 2006, 01:40:03 pm
Ah, ok.  So by default, a playlist has no properties, unless some other SDK user has added some?
Title: Re: New Automation SDK document
Post by: John Gateley on March 03, 2006, 02:09:02 pm
And system properties, which are not available for general consumption...

j