Jump to content
LaunchBox Community Forums

Running Script vs Exit Script


k_rollo

Recommended Posts

  • 1 year later...

@Retro808

image.thumb.png.fc9d057a08d0b832a678966f7ba416a2.png

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 by Sbaby
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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...