INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: New Automation SDK document  (Read 4131 times)

John Gateley

  • Citizen of the Universe
  • *****
  • Posts: 4957
  • Nice haircut
New Automation SDK document
« 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

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: New Automation SDK document
« Reply #1 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?
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

John Gateley

  • Citizen of the Universe
  • *****
  • Posts: 4957
  • Nice haircut
Re: New Automation SDK document
« Reply #2 on: January 23, 2006, 03:48:13 pm »

I added some previously undocumented functions...

j

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: New Automation SDK document
« Reply #3 on: January 23, 2006, 06:42:36 pm »

Is the MC TLB file still the same?

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: New Automation SDK document
« Reply #4 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
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

PollyQ

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 65
Re: New Automation SDK document
« Reply #5 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!
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: New Automation SDK document
« Reply #6 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.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: New Automation SDK document
« Reply #7 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.

John Gateley

  • Citizen of the Universe
  • *****
  • Posts: 4957
  • Nice haircut
Re: New Automation SDK document
« Reply #8 on: February 27, 2006, 03:24:10 pm »

Thanks PollyQ, it's fixed.

j

PollyQ

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 65
Re: New Automation SDK document
« Reply #9 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.
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: New Automation SDK document
« Reply #10 on: February 28, 2006, 03:03:29 pm »

Intriguing,
Cheers I'll take another look.

Zoner

  • Regular Member
  • World Citizen
  • ***
  • Posts: 198
  • nothing more to say...
Re: New Automation SDK document
« Reply #11 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.

Logged

John Gateley

  • Citizen of the Universe
  • *****
  • Posts: 4957
  • Nice haircut
Re: New Automation SDK document
« Reply #12 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

Zoner

  • Regular Member
  • World Citizen
  • ***
  • Posts: 198
  • nothing more to say...
Re: New Automation SDK document
« Reply #13 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?
Logged

John Gateley

  • Citizen of the Universe
  • *****
  • Posts: 4957
  • Nice haircut
Re: New Automation SDK document
« Reply #14 on: March 03, 2006, 02:09:02 pm »

And system properties, which are not available for general consumption...

j
Pages: [1]   Go Up