(2014-03-20, 19:08)Malakesher Wrote: Is there any good way to exit from emulators with a remote press?
Basically I am looking for something that when I run a game from RCB it sets a remote button to be ALT+F4 then after I press the button and go back to XBMC it removes this feature so that I do keep accidentally closing XBMC etc.
Would it be possible to do this something like a bat file and run it with the pre-launch command?
I'm using windows 7 btw.
I guess you can't do it directly from XBMC. You'll have to see if each emulator has this feature implemented.
Some emulators have an option that can open ROMs directly in fullscreen, automatically mapping "Esc" key to force close the emulator when pressed. This way, you won't need to map ESC key to a remote button, since most remotes already have this key mapped to a button. This way, "Esc" will only close emulators, and won't do nothing on XBMC besides going back to previous menu or option.
MAME (arcade emulator) already have this: All games are opened on fullscreen, and you can close it by simply pressing Escape key.
Kega Fusion (emulator for sega consoles and handhelds) have this too, but you'll have to pass a few command-line parameter for it to work. Examples:
Code:
fusion gamename.ext -sms -fullscreen // For Sega Master System games
fusion gamename.ext -gen -fullscreen // For Sega Genesis games
If you don't like Kega Fusion, the same can be done on Gens or Gens/GS by passing "--quickexit" parameter (two traces). A good thing about Gens is that you don't need to specify the platform you want to emulate. Simply pass rom path with these parameter and you're good to go. Examples:
Code:
gens --quickexit gamename.ext
ZSNES (Super Nintendo emulator) is the same as Kega Fusion and Gens: Load ROMs in command-line by passing "-m" and -"c" parameters before game name. The first one will disable GUI and force close emulator on Esc keypress, and the second one will force fullscreen. Example:
Code:
zsnes -m gamename.ext
Of course, If you need to change emulator configs, such as controller mappings, you'll need to open emulator without these parameters, since you'll need to exit fullscreen mode first, and sometimes the only way to exit fullscreen is by pressing Esc. Neither "Alt + Enter" will work. However, there's some exceptions: on Kega Fusion, you can simply press mouse right button and go to settings window from there. On Snes9x, you can press Alt+F7 (or Alt+F8, don't remember), and you'll be redirected to command settings window.
For another emulators, if there's no way to force close on Escape key, you'll have to use AutoIt or AutoKey scripts. Here's an
example for Snes9x, that don't have this feature implemented by default.