Autohotkey Script for individual games.

Issue #5400 new
Pablo Manzano created an issue

A field for writting a script (for example, for exiting the game with ESC) for those windows games (usually arcade games Windows based) which don’t have an exit option and we have to push Alt + F4. (Street Fighter V Type Arcade, Left 4 Dead Survivors….)

The field only exists for emulators, but I think it would be handy for games.

Comments (7)

  1. neil9000

    You can add scripts/batch files/AHK scripts etc to any game under the additional apps section.

  2. Pablo Manzano reporter

    Yep, I know. But we have to download an external software, compile the script code and add the .exe to Launchbox.

    It's easier if we could add directly the script. (And always is better to have as few .exes as possible)

  3. Retro808

    While I agree it is easier to just add like you do for and emulator. I just want to clarify you do not need to download anything to compile your own AHK. LB includes AHK in its download. It is located in the Third Party folder.

    Also, you do not need to add as an additional application. You can compile a Launcher exe that can run your AHK script, launch the game, then close it all out on exit of the game. Then you make this the game file you point to instead of the actual game exe. Just another option until what you are looking for is available.

  4. Pablo Manzano reporter

    Mmm….. I don’t know how to run this.
    It’s no intuitive for me…I don’t know what to do with this. And a exe need to be created.

    It’s so easier with only writting:

    \$Esc::
    {
    Process, Close, {{{StartupEXE}}}
    }

  5. Jonathan Irwin-Morris

    I might be wrong but I don’t think the Autohotkey included with LB gives you the ability to compile scripts. You need to install the actual Autohotkey program from the website…

    Once you’ve done it, it is very easy to make your scripts.

  6. Pablo Manzano reporter

    Then, a said, we need external software only for an option as simple as closing the process with ESC instead of Alt + F4.

    Dosbox and Windows games have autohotkey script option. Other games may use button mapping in launchbox.

    But some of ArcadePC only exit with Alt + F4 as I was saying.

    I use launchbox because not only I think it's the best frontend, but I can ALMOST do everything without the need for other software (I don't use rocketlauncher or joytokey)

  7. Log in to comment