Jump to content
LaunchBox Community Forums

Joy to Key Auto-Exit?


V15UAL K3YS

Recommended Posts

Hey Everyone! 

This is my first forum post here, but I wanted to thank everyone involved in developing LaunchBox. I really am loving the program and can easily have all my games configured exactly how I want to; I am currently working on a retro Big Box setup so I can play games via my TV with only my Xbox One controller. 

Because of this some games don't have native game-pad support (some MS-DOS games, Tomb Raider for PC, etc) and I am using "Joy To Key" to map my controller to keyboard inputs so that I can play the games with my controller. My question is: would there possibly be a way to have Joy To Key exit when the game I am playing closes? Is there a certain command line input I can use? I want to make sure it can be closed if I was to play another game that didn't require Joy To Key (not that it is CPU intensive, I am just OCD like this). 

Thanks in advance!

Link to comment
Share on other sites

Right click the game -> edit and choose additional apps. From there you should be able to add joytokey as an app, and check a box so that it runs when the game does.
You can then create an AHK script (or batch script) to exit joytokey, that you add as an application that runs when the game closes.

I hope that made sense.

Link to comment
Share on other sites

I have created a batch file to kill the Joytokey process after I exit the game (but it only works with certain games, as launchbox needs to be able to detect that the game/emulator has been closed).

I called the file "kill_j2k.bat" with the following content>

taskkill.exe /F /IM  JoyToKey.exe

Hope this helps

 

  • Like 1
Link to comment
Share on other sites

Thanks for the help! I used NightShadowPT's solution and created my own Kill2Joy.bat file, set it to "Run After Main Application" while adding additional applications and it works! Joy To Key loads while playing a game and when I exit the game the batch file executes and closes Joy To Key. (just make sure Joy To Key.exe is set to "Run Before Main Application"). Thanks again! :)

Link to comment
Share on other sites

  • 2 years later...

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