NOTE: This assumes some knowledge of the Hauppage remote.
I want my PVR user's experience to be as simple as possible. For me this means I want everything controlled by the remote in the most intuitive way possible. GBPVR is a great program and with a little work I've been able to get pretty much everything I could want working with the excellent plugins and tools made by this community.
I particularly enjoy reven's My* series of plugins. This tutorial has to do with issues I ran into while working with MyPrograms. I can run all my favorite emulators but some of them don't like to close when I assign key's to the irremote.ini for the program. I believe this is due to the program being Console based when in fullscreen mode. This post is a solution I found to get these or any programs closed with a few simple steps.
Found this useful free tool NirCmd: (download link is at bottom of page)
http://www.nirsoft.net/utils/nircmd2.html
It is a command line driven program that can do a multitude of useful windows functions. Including closing a window by passing the program name to it.
Some emulators and games don't accept input directly through the remote interface with irremote.ini. For instance: ePSXe(playstation emulator) does not like to close gracefully for me with my remote.
**Careful** Editting irremote.ini may cause problems if not done in the correct manner. So please only try this if your comfortable modifying this file.
; NOTE: Lines starting with a ";" are just comments, no need to add them to
; irremote.ini
; Create a batch file that will close the window with NirCmd. To do this
; create a regular .txt file and add this line:
"C:\Program Files\NirCmd\nircmd.exe" killprocess ePSXe.exe
; The path "C:\Program Files\NirCmd\" is the path to where ever you installed
; NirCmd. "ePSXe.exe" is the executable for the PSX emulator. I used
; killprocess, because the program would'nt close all of its windows with
; only the closeprocess command. closeprocess is a safer command to use
; though.
; Then save as: (name/save it anything, but you need this later)
C:\Utils\closePSX.bat
; At this point you can test it out by running the program(i.e. ePSXe.exe)
; and then alt tabbing and running the batch file. This should kill the
; program.
; Open your irremote.ini(i.e. C:\Windows\irremote.ini)
; Add this under: [Applications] (found near the top)
; (I always add my new applications right above: GB-PVR=
; The name you add here is the exact window name you see in the
; taskbar while the program is running. Alt+Tab when you run the
; program and put your mouse over the program in the taskbar, to find
; this)
ePSXe - Enhanced PSX Emulator=
; Now go down to the end of the file and find where [GB-PVR] starts
; (I always add my new programs just above [GB-PVR], just my
; preference. These lines will call the batch files we made earlier
; to close the window. I use the back and power button to close
; everything, change these to your preference.)
[ePSXe - Enhanced PSX Emulator]
BACK={run(C:\Utils\closePSX.bat)}
GRNPOWER={run(C:\Utils\closePSX.bat)}
; NOTE: If you saved your .bat file in a folder that has spaces in it like
; "C:\Program Files\..." the path must look like this "C:\Progra~1\...". I'm
; not going to get into why this is. If you run into an issue saying
; something like Can't find executable, something was misspelled or its an
; issue like that.
Now Restart the IR Software and test it out.
This works quite nicely and while its not the most graceful solution it gets the job done. Enjoy!
-Matt
I want my PVR user's experience to be as simple as possible. For me this means I want everything controlled by the remote in the most intuitive way possible. GBPVR is a great program and with a little work I've been able to get pretty much everything I could want working with the excellent plugins and tools made by this community.
I particularly enjoy reven's My* series of plugins. This tutorial has to do with issues I ran into while working with MyPrograms. I can run all my favorite emulators but some of them don't like to close when I assign key's to the irremote.ini for the program. I believe this is due to the program being Console based when in fullscreen mode. This post is a solution I found to get these or any programs closed with a few simple steps.
Found this useful free tool NirCmd: (download link is at bottom of page)
http://www.nirsoft.net/utils/nircmd2.html
It is a command line driven program that can do a multitude of useful windows functions. Including closing a window by passing the program name to it.
Some emulators and games don't accept input directly through the remote interface with irremote.ini. For instance: ePSXe(playstation emulator) does not like to close gracefully for me with my remote.
**Careful** Editting irremote.ini may cause problems if not done in the correct manner. So please only try this if your comfortable modifying this file.
; NOTE: Lines starting with a ";" are just comments, no need to add them to
; irremote.ini
; Create a batch file that will close the window with NirCmd. To do this
; create a regular .txt file and add this line:
"C:\Program Files\NirCmd\nircmd.exe" killprocess ePSXe.exe
; The path "C:\Program Files\NirCmd\" is the path to where ever you installed
; NirCmd. "ePSXe.exe" is the executable for the PSX emulator. I used
; killprocess, because the program would'nt close all of its windows with
; only the closeprocess command. closeprocess is a safer command to use
; though.
; Then save as: (name/save it anything, but you need this later)
C:\Utils\closePSX.bat
; At this point you can test it out by running the program(i.e. ePSXe.exe)
; and then alt tabbing and running the batch file. This should kill the
; program.
; Open your irremote.ini(i.e. C:\Windows\irremote.ini)
; Add this under: [Applications] (found near the top)
; (I always add my new applications right above: GB-PVR=
; The name you add here is the exact window name you see in the
; taskbar while the program is running. Alt+Tab when you run the
; program and put your mouse over the program in the taskbar, to find
; this)
ePSXe - Enhanced PSX Emulator=
; Now go down to the end of the file and find where [GB-PVR] starts
; (I always add my new programs just above [GB-PVR], just my
; preference. These lines will call the batch files we made earlier
; to close the window. I use the back and power button to close
; everything, change these to your preference.)
[ePSXe - Enhanced PSX Emulator]
BACK={run(C:\Utils\closePSX.bat)}
GRNPOWER={run(C:\Utils\closePSX.bat)}
; NOTE: If you saved your .bat file in a folder that has spaces in it like
; "C:\Program Files\..." the path must look like this "C:\Progra~1\...". I'm
; not going to get into why this is. If you run into an issue saying
; something like Can't find executable, something was misspelled or its an
; issue like that.
Now Restart the IR Software and test it out.
This works quite nicely and while its not the most graceful solution it gets the job done. Enjoy!
-Matt