NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 36 37 38 39 40 … 93 Next »
Set focus to another process?

 
  • 0 Vote(s) - 0 Average
Set focus to another process?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,589
Threads: 385
Joined: Dec 2004
#1
2008-01-12, 01:19 AM
In short, my plugin spawns a command-line exe which then steals focus from PVRX2. I don't know why it steals focus or how to prevent it. As a workaround, I could either get the plugin to reset the focus to PVRX2 or I could get the command-line exe to set the focus back.

I've done this in the past with Win32 apps but can't find the equivalent in .NET.

Any ideas? I've searched the net and the VS help files but I'm obviously missing something.

Cheers,
Brian
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#2
2008-01-12, 01:57 AM
I think, instead of trying to change it back, it would be a happier time to keep the new executable from taking focus in the first place.

Does the user need to be able to see / interact with the new executable? If not, you can just set it's WindowStyle to Hidden and be done with it.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,589
Threads: 385
Joined: Dec 2004
#3
2008-01-12, 03:18 AM
Ommina Wrote:Does the user need to be able to see / interact with the new executable? If not, you can just set it's WindowStyle to Hidden and be done with it.
Thanks my problem is solved (I think). I'd tried the Hidden WindowStyle before but it didn't work properly. I've looked at my code again and found it was one of those situations where you stare so long at something that you no longer see it.....I wasn't passing information to the exe properly. It worked OK when it was visible/minimized but not when hidden.

Aaargh!

Cheers,
Brian
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Focus imilne 6 2,617 2011-07-16, 09:37 AM
Last Post: imilne
  Regaining focus McBainUK 2 1,749 2009-12-31, 04:31 PM
Last Post: McBainUK
  Set focus to list McBainUK 4 2,111 2009-12-09, 07:54 PM
Last Post: whurlston
  Finding focus of a control? bgowland 1 1,290 2008-02-02, 06:02 AM
Last Post: bgowland
  PostMessage() / IR32 No-Focus compatibility HydroChronic 1 1,605 2007-07-25, 06:36 PM
Last Post: sub
  Keeping GB-PVR in focus liteswap 6 2,427 2007-04-26, 04:07 PM
Last Post: pastro
  stopping the screensaver taking focus idkpmiller 2 1,602 2007-01-21, 12:43 AM
Last Post: idkpmiller
  Redirecting stdout from a process invoked from a plugin ubu 20 8,257 2007-01-18, 08:08 PM
Last Post: Ton
  I need to check if a specific process has focus idkpmiller 4 1,961 2007-01-15, 11:17 PM
Last Post: whurlston
  Killing an orphan process when the plugin has died ubu 14 4,543 2006-12-30, 06:29 AM
Last Post: zehd

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode