Results 1 to 7 of 7

Thread: when wmp is opened run my app

  1. #1

    Thread Starter
    Member SgtSlayer's Avatar
    Join Date
    Aug 2005
    Posts
    46

    when wmp is opened run my app

    Hello

    Who do I do the the following:

    When the user boots up wmp my program is starts up?

    Thanks
    SgtSlayer

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: when wmp is opened run my app

    It'd be easier to have your program start WMP. Alternatively, you could have a program running that looks for WMP to start, and then start your app.

  3. #3

    Thread Starter
    Member SgtSlayer's Avatar
    Join Date
    Aug 2005
    Posts
    46

    Re: when wmp is opened run my app

    Yea I thought of that but when wmp is opened from a browser that wouldn't work.

    Thanks
    SgtSlayer

  4. #4
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: when wmp is opened run my app

    You mean if WMP is opened from a web browser?

    If so some instance of the program must be runnning?

  5. #5

    Thread Starter
    Member SgtSlayer's Avatar
    Join Date
    Aug 2005
    Posts
    46

    Re: when wmp is opened run my app

    Yeah I see: MYAPP.exe starts when windows starts and then when wmp is booted is shells my main app.
    But how does my app tell when to shell the main app?

    Thanks
    SgtSlayer

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: when wmp is opened run my app

    You can use this to find a window.

    http://vbforums.com/attachment.php?attachmentid=38422

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: when wmp is opened run my app

    You can't do it properly. You have to have a timer, or just a continous loop (making sure that it only uses minimal CPU time) and keep checking for an instance of WMP.

    The proper way would be to use a WH_SHELL hook, but after extensive efforts we couldn't find a way to do it in VB, due to the intricacies of hook injecting and the reliance on the VB runtime.

Posting Permissions

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



Click Here to Expand Forum to Full Width