Hello
Who do I do the the following:
When the user boots up wmp my program is starts up?
Thanks
SgtSlayer
Printable View
Hello
Who do I do the the following:
When the user boots up wmp my program is starts up?
Thanks
SgtSlayer
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.
Yea I thought of that but when wmp is opened from a browser that wouldn't work.
Thanks
SgtSlayer
You mean if WMP is opened from a web browser?
If so some instance of the program must be runnning?
Yeah I see: MYAPP.exe starts when windows starts and then when wmp is booted is shells my main app. :thumb:
But how does my app tell when to shell the main app? :confused:
Thanks
SgtSlayer
You can use this to find a window.
http://vbforums.com/attachment.php?attachmentid=38422
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.