Hi,
I've generated some documentation regarding using a remote without NPVR being in focus, through both the Hauppauge IR software and IR Server Suite.
I've been using mine this way for a few years, but I think a lot of users don't know what's possible, and while there is information on the forums it's scattered around, hard to find, and a lot of the posts refer to attachments that have now been deleted due to their age.
So, is this something that should be on the wiki?
Any suggestions/improvements/criticisms?
All 3 attachments referred to are in the one zip file attached.
Advanced Remote Configuration
Using Remotes without NPVR in focus, through Hauppauge IR software or IR Server Suite
Needing NPVR to have focus in order to use your remote can be a major nuisance. It is possible to have your remote commands sent directly to NPVR whether or not it is the program in focus. This is particularly useful with dual display setups; I can browse the web on the monitor attached to my NPVR server while someone else continues to use the remote to operate NPVR, running on a secondary display.
This can be done using ‘window messages’ targeting NPVR.
We just need to know the message codes that correspond to various commands, and how to implement them in either the Hauppauge IR software, or IR server suite.
Hauppauge IR Software
As standard this software sends commands to the window in focus.
To send the commands direct to NPVR, we can target it using its window class*. (There are other options, but this works best)** This is done with the ‘findwnd’ command. Then add the appropriate message code for the commands you want to send. Details of the message codes are attached.
For example, the line specifying the ‘arrow-up’ command looks like this:
NAVUP={findwnd(WindowsForms10.Window.8.app.0.33c0d9d,,)}{SendMsg(32775,38,0)}
32775 appears in all the commands, 38 is the code for the 'up arrow' keystroke, and the last number is always zero.
'WindowsForms10.Window.8.app.0.33c0d9d' is the 'window class' of NPVR.
You can use the attached irremote.ini file to control NPVR exclusively with a Hauppauge 45 button remote. (This one : http://www.nextpvr.com/nwiki/pmwiki.php?...ttonRemote)
The green power button will start NPVR. (Change C:\Progra~1\…. To C:\Progra~2\... in 64 bit Windows versions.)
You can change the functions of buttons as you wish to add extra functionality.
For example, in the attached file the ‘text’ and ‘subcc’ keys have no commands associated with them, so these could be set to other keystrokes, or to trigger .bat files (i.e. to close NPVR, or tell the PC to sleep).
Additional info on using this software can be found here: http://www.hazeveld.demon.nl/Docs/irremo...v22180.txt
IR Server Suite
IR Server Suite is a powerful and easy to use program that, with a supported receiver, will allow you to use almost any remote control with your PC.
It can be downloaded here: http://forum.team-mediaportal.com/thread...ses.75092/
Once installed and configured with your receiver, setup for NPVR will be done in the ‘Translator’ component. Guide here: http://wiki.team-mediaportal.com/1_MEDIA...Translator
To set this up for NPVR you will need to add each key and assign commands to it. These should be set up as ‘system wide’ commands.
For each key you will need to follow these steps:
• Click the ‘New’ button and teach Translator the command by pressing the button on your remote.
• Select the ‘Window Message’ tab
• Under ‘Target’ select ‘Class’ and paste in the Window Class of NPVR:
WindowsForms10.Window.8.app.0.33c0d9d
• Enter 32,775 in the ‘Message’ box.
• Enter the appropriate message code from the table attached in the ‘Word Param’ box. 'Long Param' should be left at 0
• Press ‘Set’.
The configuration can be exported to an xml file. I’ve attached a sample XML configuration which should work with a Hauppauge 45 button remote if imported. Again, the volume keys alter the system wide volume, and the ‘text’ and ‘subcc’ keys are unassigned.
* Window class is currently ‘WindowsForms10.Window.8.app.0.33c0d9d’ It is possible that this could change with a future release, but you can check what it is with Spy++
** You can target the window name, but the window name can change, as it does when you start watching something. Also, other windows can have ‘NPVR’ in their title (i.e. a browser when looking at the support forum) and can receive commands by mistake. Similarly, IR Server Suite can target ‘NextPVR.exe’, but this stops working as soon as you enable a second instance for an NMT or MPV.
I've generated some documentation regarding using a remote without NPVR being in focus, through both the Hauppauge IR software and IR Server Suite.
I've been using mine this way for a few years, but I think a lot of users don't know what's possible, and while there is information on the forums it's scattered around, hard to find, and a lot of the posts refer to attachments that have now been deleted due to their age.
So, is this something that should be on the wiki?
Any suggestions/improvements/criticisms?
All 3 attachments referred to are in the one zip file attached.
Advanced Remote Configuration
Using Remotes without NPVR in focus, through Hauppauge IR software or IR Server Suite
Needing NPVR to have focus in order to use your remote can be a major nuisance. It is possible to have your remote commands sent directly to NPVR whether or not it is the program in focus. This is particularly useful with dual display setups; I can browse the web on the monitor attached to my NPVR server while someone else continues to use the remote to operate NPVR, running on a secondary display.
This can be done using ‘window messages’ targeting NPVR.
We just need to know the message codes that correspond to various commands, and how to implement them in either the Hauppauge IR software, or IR server suite.
Hauppauge IR Software
As standard this software sends commands to the window in focus.
To send the commands direct to NPVR, we can target it using its window class*. (There are other options, but this works best)** This is done with the ‘findwnd’ command. Then add the appropriate message code for the commands you want to send. Details of the message codes are attached.
For example, the line specifying the ‘arrow-up’ command looks like this:
NAVUP={findwnd(WindowsForms10.Window.8.app.0.33c0d9d,,)}{SendMsg(32775,38,0)}
32775 appears in all the commands, 38 is the code for the 'up arrow' keystroke, and the last number is always zero.
'WindowsForms10.Window.8.app.0.33c0d9d' is the 'window class' of NPVR.
You can use the attached irremote.ini file to control NPVR exclusively with a Hauppauge 45 button remote. (This one : http://www.nextpvr.com/nwiki/pmwiki.php?...ttonRemote)
The green power button will start NPVR. (Change C:\Progra~1\…. To C:\Progra~2\... in 64 bit Windows versions.)
You can change the functions of buttons as you wish to add extra functionality.
For example, in the attached file the ‘text’ and ‘subcc’ keys have no commands associated with them, so these could be set to other keystrokes, or to trigger .bat files (i.e. to close NPVR, or tell the PC to sleep).
Additional info on using this software can be found here: http://www.hazeveld.demon.nl/Docs/irremo...v22180.txt
IR Server Suite
IR Server Suite is a powerful and easy to use program that, with a supported receiver, will allow you to use almost any remote control with your PC.
It can be downloaded here: http://forum.team-mediaportal.com/thread...ses.75092/
Once installed and configured with your receiver, setup for NPVR will be done in the ‘Translator’ component. Guide here: http://wiki.team-mediaportal.com/1_MEDIA...Translator
To set this up for NPVR you will need to add each key and assign commands to it. These should be set up as ‘system wide’ commands.
For each key you will need to follow these steps:
• Click the ‘New’ button and teach Translator the command by pressing the button on your remote.
• Select the ‘Window Message’ tab
• Under ‘Target’ select ‘Class’ and paste in the Window Class of NPVR:
WindowsForms10.Window.8.app.0.33c0d9d
• Enter 32,775 in the ‘Message’ box.
• Enter the appropriate message code from the table attached in the ‘Word Param’ box. 'Long Param' should be left at 0
• Press ‘Set’.
The configuration can be exported to an xml file. I’ve attached a sample XML configuration which should work with a Hauppauge 45 button remote if imported. Again, the volume keys alter the system wide volume, and the ‘text’ and ‘subcc’ keys are unassigned.
* Window class is currently ‘WindowsForms10.Window.8.app.0.33c0d9d’ It is possible that this could change with a future release, but you can check what it is with Spy++
** You can target the window name, but the window name can change, as it does when you start watching something. Also, other windows can have ‘NPVR’ in their title (i.e. a browser when looking at the support forum) and can receive commands by mistake. Similarly, IR Server Suite can target ‘NextPVR.exe’, but this stops working as soon as you enable a second instance for an NMT or MPV.