How to close an emulator with the remote? (2 Viewers)

Lardy

Portal Pro
April 16, 2007
78
38
Home Country
Australia Australia
I agree with emphatic. I use batch files with the My Programs plugin to start individual games with MCE remote, and the Clear [ESC] button on MCE remote to close the game. This works for the following emulators:

MAME
Kega Fusion
pSX & ePSXe
Pcsx2
Project64
ZSNES
 

Kingmob

Portal Pro
August 27, 2007
60
2
44
Rotterdam
Home Country
Netherlands Netherlands
Hmm, i figured out a different way. i disabled support for my MCE remote in MP and use the plugin provided with the IRSS tool. Also disabled all automatic handling of buttons by the OS. Now i have full control of what the remote does in all situations. Really cool, the master volume can now be handled in every emulator for instance and i can close them all with the same button. Took some restarts before it works and you need to figure out how to send window messages for higher functions such as changing the master volume and muting, but i think in the end everything is possible this way. Now if i only can figure out how to send an END+F1 keystroke I will be happy :)
 

Atreides

Portal Pro
June 28, 2008
213
16
Home Country
United States of America United States of America
Hey guys, I have recently run into a problem with the way I close the emulators with the remote. I use girder and I have it close the window and then with emu's that use a mem card I have it start a bat file that kills the process. This works for everything (I thought) but now I found out that ZSNES will still be running in the background. I know I can use a bat file and kill the process but then I wont be bale to save any data. I tried that before and I couldnt play a game and save to the cartridge. The emu just wont do it if I kill the process. Any suggestions? Thanks.
 

Squega

Portal Member
October 21, 2008
25
0
Southern California
Home Country
United States of America United States of America
Hey guys, I have recently run into a problem with the way I close the emulators with the remote. I use girder and I have it close the window and then with emu's that use a mem card I have it start a bat file that kills the process. This works for everything (I thought) but now I found out that ZSNES will still be running in the background. I know I can use a bat file and kill the process but then I wont be bale to save any data. I tried that before and I couldnt play a game and save to the cartridge. The emu just wont do it if I kill the process. Any suggestions? Thanks.

ZSNES has a setting in the zsnesw.cfg file called "SRAMSave5Sec" that you need to set to 1 that tells the emulator to save to the hard drive in realtime so game saves are preserved even if the emulator process it killed.
 

Atreides

Portal Pro
June 28, 2008
213
16
Home Country
United States of America United States of America
Thanks! I never knew that. That really helps me out with this. Thanks again.
 

Squega

Portal Member
October 21, 2008
25
0
Southern California
Home Country
United States of America United States of America
Killing a process via process.exe has worked with every emulator for me except Kega Fusion. If you kill its process then saves are lost and there is no option to do what ZSNES does to get around it.

I did some searching and found a VBScript that will send a proper ALT+F4 signal to a process. I tested this with Kega Fusion with success. Make a new file with the .vbs extension, such as close.vbs and paste the following text into it:

Code:
set shell=createobject("wscript.shell")
shell.appactivate("Fusion")
shell.sendkeys "%{f4}"

The above script will focus on the first application whose title bar contains "Fusion" and then send ALT+F4 to it. I mention first application because if you have an explorer window open that also contains "Fusion" then it might be called and closed instead.

After this use the Translator program to call this script without any command-line arguments instead of process.exe when you press the desired remote button to close the emulator.
 

Users who are viewing this thread

Top Bottom