Jump to content
LaunchBox Community Forums

Auto close X360CE after exiting a game


rom116

Recommended Posts

Hi everyone.  Hoping one of the arcade machine users can help a brother out...

I finally got Killer Instinct (Steam Version) working with my arcade controls using an app called x360ce.  (An app for mapping an input device as an xbox 360 controller)  I set LB to use the .exe file and imported it as a windows game rather than importing it as a steam game if that matters to assist in providing a solution (although I don't imagine it will but you never know...)

So when I launch Killer Instinct, x360ce automatically opens without any manual intervention (I don't have to set it up as an additional app or anything in LB) but when I quit Killer Instinct x360ce remains open and messes with the order of my joysticks for games that use retroarch.  

I have 0 familiarity with auto hotkey scripts or creating .bat files and am wondering if someone could help me figure out a way to auto close x360ce after I exit Killer Instinct.

I am also open to using an alternative app...I have tried joytokey and it gave me endless problems and I couldn't get it working consistently (and I feel like I am pretty tech savvy) 

Thanks for any help.

Link to comment
Share on other sites

Figured out the batch script, but can't figure out how to tell launchbox to run it after the game closes...

I have x360ce to run before game, works perfect.

I have the batch file set to run after the game but it runs right when the game starts and terminates the other app...I cannot click wait until exit because it's greyed out...What am i doing wrong

Link to comment
Share on other sites

  • 7 months later...
  • 2 years later...

I asked GPT chat to create a .BAT for me, open program 1 and open program 2.
and when I close program 2 manually, program 1 would close automatically too, he gave me these lines of code here:

echo off
start "" "C:\path\to\program1.exe"
start "" "C:\path\to\program2.exe"

:loop
timeout /t 2 /nobreak >nul
tasklist | find /i "programa1.exe" >nul
if errorlevel 1 (
     taskkill /im "programa2.exe" /f >nul
     exit
)
goto loop


translate it into your languages, and check if it works, for me it worked
PT-BR here.. hoping it works

 

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