Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Need help quitting PC games with Escape key  (Read 1366 times)

0 Members and 1 Guest are viewing this topic.

Turnarcades

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1973
  • Last login:May 13, 2017, 08:14:29 am
  • Craig @ Turnarcades
    • Turnarcades
Need help quitting PC games with Escape key
« on: June 12, 2014, 08:55:37 pm »
Boy it's been an eternity since I visited BYOAC, crazy couple of years!

Anyway, a stick in my arse was always trying to force games to quit using the escape key. I have managed to get round it with many systems but PC games were trickier. With SSF4AE I managed to find a program (well a little exe file) that you launched instead of the game exe, and it made it possible then to hit 'escape' to quit back to my frontend at any time. I cannot remember where I sourced this, and I've had nothing but headaches trying to use Autohotkey over the years, and I now just want to add SF X Tekken to my cab. Does anyone know a way I can force the damn game to quit using the escape key? Any help, much obliged!

rockyrocket

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 372
  • Last login:January 01, 2019, 02:13:03 pm
Re: Need help quitting PC games with Escape key
« Reply #1 on: June 13, 2014, 02:36:24 am »
What front end are you on?.
Can you remap ESC to Alt-F4 just for this game using your fave AHK? (will  Alt-F4 quit the game for you?).

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: Need help quitting PC games with Escape key
« Reply #2 on: June 13, 2014, 08:12:53 am »
What front end are you on?.
Can you remap ESC to Alt-F4 just for this game using your fave AHK? (will  Alt-F4 quit the game for you?).
That or map ESC to the key combination defined in the game.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Yesterday at 10:55:32 am
  • ...
Re: Need help quitting PC games with Escape key
« Reply #3 on: June 13, 2014, 08:50:15 am »
I usually use autohotkey for such things.

ESC::
process, close, sfxt.exe (or whatever the exe is named)


That will kill the process, same as killing it from task manager.
That's the one I usually use, but sometimes the resolution won't revert to the original desktop resolution.

ESC::
Winclose, sfxt (or whatever the active window of the game is titled)

Sometimes you can figure it out by running the game windowed.
If not, there are autohotkey scripts out there that will record the active window names and help you figure it out.
This one is more of a PITA because you have to figure out the window name, but it doesn't screw up the resolution as often.

Once the script is made, you can right click on it and compile it to an .exe on a computer that has autohotkey installed.
That .exe will run on any computer, even if ahk isn't installed.
That's probably all the .exe you downloaded before was.

Personally, I don't use an exit button for the PC games since settings and save files can get corrupted.
I close them out properly through the game menu.


« Last Edit: June 13, 2014, 11:53:49 am by BadMouth »