NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 21 22 23 24 25 … 93 Next »
Regaining focus

 
  • 0 Vote(s) - 0 Average
Regaining focus
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2009-12-31, 01:48 PM
Hi all, I wonder if I can pick your brains...

My plugin launches external programs which take the focus away from GB-PVR. What's a good way of regaining/restoring the focus to the GB-PVR window using C#?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#2
2009-12-31, 03:26 PM
I used this thread (somewhat modified) to restore focus to GB-PVR when returning from the external app.

I'm not aware of any .NET specific commands to make it happen, but the code from that thread works quite well.

Happy to send a copy of what I've done, but it's in VB.NET, so you'll have to massage it to C#.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2009-12-31, 04:31 PM
Requires more testing but the SetForegroundWindow/SetFocus calls seem to be working. Thanks Smile
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Focus imilne 6 2,569 2011-07-16, 09:37 AM
Last Post: imilne
  Set focus to list McBainUK 4 2,055 2009-12-09, 07:54 PM
Last Post: whurlston
  Finding focus of a control? bgowland 1 1,247 2008-02-02, 06:02 AM
Last Post: bgowland
  Set focus to another process? bgowland 2 1,486 2008-01-12, 03:18 AM
Last Post: bgowland
  PostMessage() / IR32 No-Focus compatibility HydroChronic 1 1,570 2007-07-25, 06:36 PM
Last Post: sub
  Keeping GB-PVR in focus liteswap 6 2,334 2007-04-26, 04:07 PM
Last Post: pastro
  stopping the screensaver taking focus idkpmiller 2 1,554 2007-01-21, 12:43 AM
Last Post: idkpmiller
  I need to check if a specific process has focus idkpmiller 4 1,900 2007-01-15, 11:17 PM
Last Post: whurlston
  AxWMPLib.AxWindowsMediaPlayer in a form alwys has focus reven 8 4,095 2006-10-13, 11:44 AM
Last Post: reven

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

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

Linear Mode
Threaded Mode