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 … 302 303 304 305 306 … 433 Next »
Help with Hauppauge 45 remote programming-force nPVR focus

Help with Hauppauge 45 remote programming-force nPVR focus
dshoup
Offline

Member

Posts: 247
Threads: 39
Joined: Jan 2006
#1
2012-06-13, 01:37 AM
Hi all. I'm making the transition from GBPVR to nPVR. I'm using a new system (Win7 64-bit). I have a Hauppauge 45-key remote and the remote working correctly using the irremote.ini file. For example, I can program play as Play={CTRL}p and it works just as it should. However, I would like some help setting the key commands so that it forces the focus to nPVR (i.e., I can use the remote while the wife is doing something else on the computer and the remote commands will be sent to nPVR and not the program my wife is using). I know of 2 ways that I should be able to do this but neither seems to be working on my new system. I'm hoping that someone smarter than me can point me in the right directionRolleyes

The first way was the only way I was able to do this under GBPVR on my WinXP rig...I used the “run” command to shift the focus back to nPVR. For example PLAY={run(C:\Progra~2\NPVR\NextPVR.exe)}{CTRL}p (I could then also add an {sleep(2)} {alt}{tab} to shift the focus back to the other program that my wife may be using at the time). Because I am using the 64-bit version of windows, nPVR is in the C:\Progra~2\NPVR\ directory rather than C:\Progra~1\NPVR\. I can confirm this is correct because the green power button is set as GRNPOWER={run(C:\Progra~2\NPVR\NextPVR.exe)} and works perfectly to load the program. However, I will point out that if I hit the green power button when nPVR is already loaded, it has no effect. This used to shift the focus to the PVR program when I used this on XP with GBPVR. I suspect if I can figure out why it does not shift the focus to nPVR on the new system, this method would work. However…I’d actually rather the second option (see below)…but at this point I’ll take any suggestions for either option.

The second way I have tried is to use the “findwnd” command. For example PLAY= {findwnd(WindowsForms10.Window.8.app.0.33c0d9d,,)}{SendMsg(32775,131152,0)}. I have used Spy++ and confirmed that nPVR is in fact identified as WindowsForms10.Window.8.app.0.33c0d9d, but this still does nothing. In fact, I have gone so far as to download the sample file from the wiki at http://www.nextpvr.com/nwiki/pmwiki.php?...moteConfig , but it does not work either (changed directory name for 64-bit windows, but did not change anything else). I would much prefer to ge this second option working as it appears more elegant than the first approach (drives my wife nuts if she is typing something because some of her key strokes end up getting sent to the PVR program before it alt-tabs back to her). However, I was never able to figure this out with GBPVR under WinXP either. Anyone know why this is not working for me? If so, want to teach me the “secret handshake” so I can use it too:o?

Any suggestions would be greatly appreciated! I’m uploading my current irremote.ini file in case anyone is curious.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#2
2012-06-13, 05:03 PM (This post was last modified: 2012-06-13, 05:23 PM by pBS.)
the second method is preferred, [using sendmsgs] but i used to use just the window name in mine..eg:
{findwnd(,nPVR)}{SendMsg(32771,131152,0)}
try that and see if it doesn't work..
[may have problems if you use a nmt or mvp extender tho]

generally i put npvr section at end...i think it makes it priority if other sections have duplicate keys..[last one wins]
i believe you should also remove the WMP8 section as it is a generic name that is used by other programs too..[ActiveMovie Window]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#3
2012-06-13, 11:57 PM
Be aware that the window name in NPVR now contains the recording name on recording playback or the channel name on live TV.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
dshoup
Offline

Member

Posts: 247
Threads: 39
Joined: Jan 2006
#4
2012-06-14, 12:38 AM
Thanks pBS...I tried using the nPVR without the window class name given and it worked:eek:! gEd, I also appreciate your point…I see exactly what you are talking about…the window name became nPVR-path\Showname when I started to play a show, but my remote was still able to control the window with the show playing (I think I read something in the irremote.ini documentation about it matching the closes window name or something). I don’t want to jinx this or anything, but it looks like this will work. I’ll continue editing the file and testing and post back if I find anything to the contrary, but it appears pBS’s suggestion works even when the window name is changed while playing a file.

I’m still not sure why the irremote.ini file I downloaded from the wiki at http://www.nextpvr.com/nwiki/pmwiki.php?...moteConfig does not work on my computer. Has anyone else had problems or successes with this file? Can we figure out what makes the difference? It might be good to figure out what is going on here for future reference (or change the downloadable file to use pBS’s approach if it is more universally fool-proof).

At any rate, I’m satisfied with the way it is working now, so I’ll call it quits, but would be happy to work with anyone who wants to trouble shoot this further to improve the wiki. In any event, many thanks to both of youBig Grin!
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#5
2012-06-15, 10:50 PM (This post was last modified: 2012-06-15, 11:11 PM by pBS.)
it matches like nPVR* meaning anything that starts with 'nPVR' so that's why it works with 'nPVR-path\showname'...
it's the only 'foolproof' method i know of for irremote.ini..

p.s. try it with 1 comma...like PLAY={findwnd(WindowsForms10.Window.8.app.0.33c0d9d,)} {SendMsg(32775,131152,0)}
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
dshoup
Offline

Member

Posts: 247
Threads: 39
Joined: Jan 2006
#6
2012-06-16, 01:50 AM
Tried the one comma idea...still does not work. It appears findwnd(,nPVR,) is the only option working for me.
buzzydotinfo
Offline

Junior Member

Posts: 27
Threads: 7
Joined: Apr 2008
#7
2012-06-20, 08:22 AM
This may be a bit off but have you looked at EventGhost as a replacement for the IRREMOTE.EXE?

I used IRREMOTE for years, but switched to EventGhost recently and I love it. Every button press is/can be a macro, so every button could find a window and send a command to that window (as well as running a script, making a cup of tea, etc).

EG uses the IRREMOTE dlls for Hauppauge remotes, so no need for more hardware. It takes a bit of learning, but it's very very good.
dshoup
Offline

Member

Posts: 247
Threads: 39
Joined: Jan 2006
#8
2012-06-20, 11:56 AM
Thanks for the suggestion! I may give that a try, but given that things are working at the moment, it will be a project for another day. Many years ago I also tried Hip (I was using a non-Hauppauge remote at the time). I'm not sure why I stopped using it...I think I just found irremote so much easier to configure once I got my Hauppauge tuner cards/remote as it had irremote.ini files I could get from the gbpvr forum at that time. I see the WIKI has IRServer as an option as well. I'm not sure which of these combinations is the best/easiest, but it's good to have options!
« 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,581 2022-05-05, 07:57 PM
Last Post: sub
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 4,080 2022-04-14, 04:33 AM
Last Post: Antmannz
  Hauppauge WinTV-HVR-950 - Analog FM Radio No sound RazorRust 8 2,188 2022-04-02, 05:50 PM
Last Post: mvallevand
  nPVR Continually Wakes PC bfos 23 11,675 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,835 2022-01-03, 04:45 AM
Last Post: mvallevand
  NextPVR and Remote viewing MaxiBelas 2 1,767 2021-09-07, 05:29 PM
Last Post: sub
  Streaming Services with NPVR tesla1886 4 2,842 2021-01-04, 02:58 AM
Last Post: tesla1886
  NPVR choosing incorrect xml guide display-name after reboot drlava 7 3,262 2020-12-27, 02:27 AM
Last Post: sub
  Can NPVR offset only 3 channel listings in EPG? acemib 20 7,397 2020-04-27, 01:28 PM
Last Post: mvallevand
  No data delivered/failed to lock a signal? from Hauppauge HDHR/DCR-2650 bishoph 8 3,814 2020-04-13, 09:55 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode