I have tried many scripts but none work. This one is directly from Launchbox and it works when launcing a Model 2 game in launchbox but not in AHK seperately.
; This section closes Sega Model 2 Emulator when pressing Escape
$Esc::
{
Process, Close, {{{StartupEXE}}}
}
The reason I need it to be in my AHK and not Launchbox's is because I'm also running Demulshooter in the script and making it an EXE, and Launchbox doesn't appear (that I know of) to let you add this script if you're not using an emulator which I'm bypassing the emulator to Launcbbox since I'm using a EXE to run the game.
If I make the first line this
#IfWinActive ahk_class emulator (emulator is the name of the emulator emulator.exe, is that wrong?)
is makes the window smaller but I need it to close.