k_rollo Posted October 2, 2022 Share Posted October 2, 2022 Hi, I've been putting the script for ESC in the Running Script section so the emulators exit to LaunchBox when I press it. Should I be putting the script in the Exit Script section instead? What's the difference? Quote Link to comment Share on other sites More sharing options...
Retro808 Posted October 2, 2022 Share Posted October 2, 2022 The “Exit Script” tab is for games with issues exiting from the LB Pause menu exit button. The “Running” option is for in game exit. 1 Quote Link to comment Share on other sites More sharing options...
Sbaby Posted October 19, 2023 Share Posted October 19, 2023 (edited) @Retro808 When exiting an emulator that requires an exit script, in my example Ryujinx, is it normal to be forced to enter the string "exitapp"? If I don't enter the string "exitapp" and subsequently start another game with another emulator, e.g. MAME, the esc key no longer works because autohotkey remains in memory from the execution of Ryujinx, even though it is closed. I can see this from windows resource management The real question is: shouldn't the scripts in the emulator section of launchbox be truncated by default when returning to launchbox after playing a game ? It's not a problem for me, I'm adding the string "exitapp" to all scripts, but I don't want it to be a bug Edited October 19, 2023 by Sbaby Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted October 19, 2023 Share Posted October 19, 2023 2 hours ago, Sbaby said: The real question is: shouldn't the scripts in the emulator section of launchbox be truncated by default when returning to launchbox after playing a game ? The pause menu Exit script should only contain the commands to exit the emulator. i.e. In the Pause Menu, select Exit and run the commands in the Exit Script section. Similar to Load Save State section, it'll only contain the command(s) (button presses) needed to load a save state. What you show is a hotkey method. Being a method, the 'script' will stay active without ExitApp being in there. This is unlike a Running Script which actually gets abandoned once the emulator is terminated. Try simplifying the above to just the [necessary] commands. This way, the [exit] script will process each line and then terminate. SetTitleMatchMode, 2 WinClose, Ryujinx Quote Link to comment Share on other sites More sharing options...
Sbaby Posted October 19, 2023 Share Posted October 19, 2023 2 hours ago, JoeViking245 said: The pause menu Exit script should only contain the commands to exit the emulator. i.e. In the Pause Menu, select Exit and run the commands in the Exit Script section. Similar to Load Save State section, it'll only contain the command(s) (button presses) needed to load a save state. What you show is a hotkey method. Being a method, the 'script' will stay active without ExitApp being in there. This is unlike a Running Script which actually gets abandoned once the emulator is terminated. Try simplifying the above to just the [necessary] commands. This way, the [exit] script will process each line and then terminate. SetTitleMatchMode, 2 WinClose, Ryujinx Yes, you are right, I can now use WinClose. The script I used was a long time ago, when each version of Ryujinx still had a different name, so using winclose I would have to redo the script every time I updated the emulator, but now it's the same generic one for each version, so it's fine. 1 Quote Link to comment Share on other sites More sharing options...
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.