Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Sep 2005
    Posts
    153
    Thanks
    34
    Thanked 0 Times in 0 Posts

    Question VB AppActivate Windows Media Player

    Hi

    In Visual Basic could someone please tell me why...

    [CODE]
    AppActivate "Windows Media Player"
    [|CODE]

    doesn't work?

    I use AppActivate with other applications fine using the Title but it's not happening with wmp.
    Searching forums and google but I can't find an answer

    Help please?

    Thanks

  • #2
    Regular Coder
    Join Date
    Dec 2011
    Location
    NW England
    Posts
    194
    Thanks
    8
    Thanked 15 Times in 15 Posts
    Are you getting any errors or anything?

  • #3
    Regular Coder
    Join Date
    Sep 2005
    Posts
    153
    Thanks
    34
    Thanked 0 Times in 0 Posts
    It actually seems to work when in Media Player I just have the CD highlighted and I'm looking at the CD tracklisting.
    But I want to be able to choose an album from the library and view that and then run the VB subroutine. At that point I get
    Run-time error '5';
    Invalid procedure call or argument

    And the AppActivate "Windows Media Player" bit is highlighted.

    It's as if it needs a different title in there when I'm looking at Library in WMP. But I don't know what the title is or how to find it.


  •  

    Posting Permissions

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