Snetrom Posted January 28 Posted January 28 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.. Quote
skizzosjt Posted January 29 Posted January 29 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 Quote
Solution JoeViking245 Posted January 29 Solution Posted January 29 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. 1 Quote
Snetrom Posted January 29 Author Posted January 29 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 } 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.