Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VBA Reference for WMP (2002/3)

    Does anyone know the VBA IDE reference to Windows Media Player. I need an object to
    an instance of the full player. I know the obect name: CreateObject("WMPlayer.OCX.7"), but
    I want F2 to show me all the types, etc. (and I want the intellisense)
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: VBA Reference for WMP (2002/3)

    According to the Microsoft page "]http://msdn.microsoft.com/library/default....sualbasic.asp"> Using Windows Media Player with Visual Basic [/url]:
    <hr>The WindowsMediaPlayer object implements all of the properties and methods of the IWMPCore, IWMPCore2, IWMPCore3, IWMPPlayer, IWMPPlayer2, IWMPPlayer3, and IWMPPlayer4 interfaces. You do not need to declare separate variables for any of these interfaces. You can access all of their members using the name you assigned to your WindowsMediaPlayer instance<hr>
    What I could find on Tools > References was Windows Media Player Core, Windows Media Player Launcher, Windows Media Player OCX and Windows MEdia Player UI. I selected all of these and then used Tools > Additional Controls to add a MediaPlayer control to a userform. I then had all the intellisense I could possibly want.

    StuartR

  3. #3
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: VBA Reference for WMP (2002/3)

    Bingo. Nice going Stuart. If found the method I was looking for in Core. Thanks for the leg work on that one. I googled
    a bit but had trouble finding the right library.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •