Jump to content
LaunchBox Community Forums

Cannot use ESC to exit xemu (run via bat-file)


Go to solution Solved by JoeViking245,

Recommended Posts

Posted

HELP ME, PLEASE...!!

In Launchbox I use a BAT-file to run the xemu emulator. I do this because certain games run badly when using 2x, 3x, and 4x resolution and can only run in 1x res.

But no matter which hotkey script i use, I cannot use the esc key to exit xemu...

I have tried numerous different variation like
-    ESC:: { send !{f4} Return }'
-    ESC:: WinClose AHK_EXE {{{StartupEXE}}}'
-    ESC:: Send !{F4} Process, Close, xemu.exe ExitApp Return
plus many many others, under the 'Running AutoHotkey Script' with no luck.

Is it becaus i'm executing a bat-file, and Launchbox is trying to close the bat-file and not xemu.. 

Posted
6 minutes ago, Snetrom said:

Is it becaus i'm executing a bat-file, and Launchbox is trying to close the bat-file and not xemu.. 

yes.....partly. and because you use same {{{StartupEXE}}} variable. Consider what is the startup exe.....is it the emulator.....or the batch file? Based on what you communicate it's the batch file.

if you used the intended process you want to close in the running script it would work

Esc::WinClose ahk_exe xemu.exe
  • Solution
Posted

The running scripts are only available as along as the 'emulator' (batch file, in your case) is running.  So if the batch file only Starts the process without the /wait parameter, it exits after the executing the Start command. Thus abandoning the Running Script.

So depending on what's in your batch file might be why none of the attempts are working.

  • Like 1
Posted

Thank you both.. I got it working.

Solution for future reference:

- I use /wait parameter in my bat-file as suggested above.
- In LaunchBox I set the following Running AutoHotkey Setting to close xemu and the bat-file:

$Esc::
{
     send !{F4}
    Return
}

  • Game On 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...