Jump to content
LaunchBox Community Forums

Help with exiting emulators with game controller gracefully.


dl71

Recommended Posts

I am a noob. I have launchbox free setup with several emulators and roms. Everything works fine till I want to exit the game and return to launchbox. The only way I can do it is with a keyboard. I want to be able to do it with an xbox controller. I have read some about autohotkey scripts but I most be doing it wrong because everything I tried didn't do anything. Could someone walk me through the process how it is done in simple terms. I really like to get cemu, duckstation, project64, and dolphin to exit with game controller gracefully. Thanks for any help in advance.

Link to comment
Share on other sites

Finally figured it out after several hours of research. Now using the script below in running scripts per emulator settings and working fine with xbox controller.

 

Joy7::
If GetKeyState("Joy8")
{
   SetKeyDelay, -1, 110
   WinClose, ahk_exe {{{StartupEXE}}}
}

Return

Hope this helps  someone else

Edited by dl71
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...