Jump to content
LaunchBox Community Forums

Recommended Posts

Posted

Hi, I know how to add these games to LB, but how int he world doyou escape / quit from them ?  I have to almost always tab out then terminate them from the taskbar.

 

Thanks!

Posted

You can also add it as an auto hotkey script in the emulator entry:

; This section closes [platform name] when pressing Escape

$Esc::

{

Process, Close, {{{StartupEXE}}}

}

  • Like 1
Posted

What's up with the Send !{f4} bit out of curiousity? Typically I don't use AHK scripts anymore (Controller Automation's close function normally works) but I've never had an instance where what I posted above didn't work whenever I actually used it.

Posted

Hmm. The script shouldn't require that to my knowledge simply because using that script isn't closing the emulator via the emulator's own close function. It's actually just closing the process following the corresponding keypress (in this case, ESC). In some cases this can actually create a problem - some emulators don't save settings changes properly if closed via this AHK method - MAMEUI for example. Using this script isn't sending a key input to the emulator - it's just saying "When you press this key, whatever you launched will close." You could create a AHK script that would send specific inputs to the emulator (like Alt+F4) but that's not what's happening with "Process, Close,  {{{StartupEXE}}}". Using  $Esc::Send !{f4} shouldn't hurt anything, but it wouldn't be sending an Alt+F4 input - it'd end the process and also send an F4 input.

I still use the AHK script for CCS64 because Controller Automation's close function doesn't work for it. You actually need access to Esc for navigating CCS64's UI however, so I changed $Esc:: to $End:: which closes the emulator when pressing the end key.

EDIT: 

Just now, Maddoc1007 said:

Whoops meant the Alt+F4 lol 

Ah, okay gotcha.

  • Like 1
Posted

You certainly know a lot more about autohotkey scripts than i, as im really not great at them and i wanted a way to close some emulators with the escape key instead of using the Alt+F4 and using the script that way just worked, technically i do'nt know why but it did.

Posted

Before I used RA I used f4 for emulators that had escape as a usable function in the emulator so I could close with my controller if need be but use my keyboard to access the menus still.

Posted

Yeah, RA covers a lot of the bases from the get go. Thankfully, some of the other emulators have ways to rebind the close function to a new key or combination of keys. MAME doesn't allow simulated keyboard inputs to be sent to it for whatever reason (which is why Controller Automation's close function doesn't work to close it) but it does allow you to assign a key or combination of keys for it's own close function, just like you would any other input in MAME (via the Tab menu) - I just set it up to close on Back+Left Bumper input which is the same keys I have assigned to close via Controller Automation.

CCS64 is a bit of an odd one. In fact, I think it might be the only one I'm still using AHK for. The  $End:: function can be changed to whatever key you want, I just needed it to be something other than ESC. I actually need to look into how to use an AHK script to hook into a combination of Xinput button presses. I know there's a way to do it but I haven't read up on it enough. I think the buttons are just "Joy1" through "Joy10" (the triggers might be something different though). I'm not sure how to do a combination of them though...

EDIT: Huh... looks like you just have to use "&" between them... I may have to try that.

EDIT 2: It says "except joystick buttons" though so maybe not...

https://autohotkey.com/docs/Hotkeys.htm#combo

  • Like 1
  • 2 weeks later...
Posted

HI,  Arcana Heart 3 doesn't let  me escape for anything.  It also messing up my resolution when I taks kill it.  ANy ideas on how to escape the game and return the screen back to my original resolution?

Thanks,

  • faeran locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...