2007-04-30, 11:36 AM
I'm working on a plugin for iTunes. Because DRM'd content must be played in iTunes and only in iTunes, the current approach is to let the user choose the video/song from GBPVR, which will then tell iTunes to play it. This works really well. My only issue is that when iTunes is done, I want GBPVR to gain focus.
I tried doing this with Process.Start, which worked, but GBPVR was no longer fullscreen. I've also tried using SetForegroundWindow() and BringWindowToFront(), but had no success there either.
I'm grabbing the window handle by way of Process.MainWindowHandle. Is that the right one to use?
Is there a reliable way to do this?
Thanks!
I tried doing this with Process.Start, which worked, but GBPVR was no longer fullscreen. I've also tried using SetForegroundWindow() and BringWindowToFront(), but had no success there either.
I'm grabbing the window handle by way of Process.MainWindowHandle. Is that the right one to use?
Is there a reliable way to do this?
Thanks!
Hauppauge PVR-150MCE / ATI All-in-Wonder 9000 Radeon Pro / 2.4 GHz P4 / 512 MB RAM