NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 332 333 334 335 336 … 433 Next »
GRNPOWER button bring nPVR into focus if already open

GRNPOWER button bring nPVR into focus if already open
Amused
Offline

Member

Posts: 58
Threads: 19
Joined: Mar 2007
#1
2011-11-09, 12:39 AM
Hi All

can anyone help me with the WndClass for nPVR?

Many years ago I nicked an idea from this very forum where pressing the Green power button would EITHER open PVRX2 OR focused upon it were an instance already running. The code for this in the Irremote.ini used to be:

GRNPOWER={run(C:\Program Files\devnz\gbpvr\PVRX2.exe)}{ sleep(750)}{FindWnd(PVRX2WndClass,)}{fgnwn d()}

I've replaced the Run bit with the location of nPVR.exe but I can't get the FindWnd/WndClass business to work but then I've no idea quite how it works - just nicked the idea from some great mind here Wink

Amsued
GBPVR 1.4.7 on Nova-T 500 and Nova-TD USB | Vista Ultimate | 1TB HDD | Core Duo 6700
Sykor
Offline

Member

Posts: 182
Threads: 3
Joined: Mar 2009
#2
2011-11-09, 02:06 AM
Just as long as you launch it there's no need for the rest. IIRC calling nPVR.exe, while it is already running, will bring it to the foreground and give it focus. That's how I have it setup anyway.
Amused
Offline

Member

Posts: 58
Threads: 19
Joined: Mar 2007
#3
2011-11-09, 10:51 PM
Oh yeah! Fantastic. Many Thanks.
GBPVR 1.4.7 on Nova-T 500 and Nova-TD USB | Vista Ultimate | 1TB HDD | Core Duo 6700
JP23
Offline

Senior Member

Posts: 405
Threads: 98
Joined: Oct 2007
#4
2011-11-10, 03:35 PM
You can actually set up your IRRemote.ini so that commands are sent to NPVR whether it is in focus or not. If you only use your Hauppauge remote to control NPVR, this is much better.

This is done by selecting the window to send the command to by Window Class, rather than just sending to the foreground window.
So your commands look like this:

0={findwnd(WindowsForms10.Window.8.app.0.33c0d9d,,)}{SendMsg(32775,48,0)}
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  npvr is not responding johndutcher 3 1,564 2022-05-05, 07:57 PM
Last Post: sub
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 4,040 2022-04-14, 04:33 AM
Last Post: Antmannz
  nPVR Continually Wakes PC bfos 23 11,589 2022-02-17, 03:48 PM
Last Post: sub
  Can't find tuner filter in NPVR 4.05 on old XP machine (eee 701) with RTL2832U iamanotheruser 3 1,803 2022-01-03, 04:45 AM
Last Post: mvallevand
  Streaming Services with NPVR tesla1886 4 2,806 2021-01-04, 02:58 AM
Last Post: tesla1886
  NPVR choosing incorrect xml guide display-name after reboot drlava 7 3,228 2020-12-27, 02:27 AM
Last Post: sub
  Can NPVR offset only 3 channel listings in EPG? acemib 20 7,378 2020-04-27, 01:28 PM
Last Post: mvallevand
  Import recorded tv shows to NPVR mattman1968 9 6,195 2020-03-03, 12:57 PM
Last Post: Jimixter
  Easiest way to migrate NPVR to a new machine JP23 1 2,019 2020-02-24, 04:55 PM
Last Post: sub
  Loss of focus on second NextPVR launch wwhenderson 5 1,807 2020-01-31, 10:29 PM
Last Post: wwhenderson

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

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

Linear Mode
Threaded Mode