Jump to content
LaunchBox Community Forums

launch vjoy or AHK scripts for specific games using launchbox


twobucks

Recommended Posts

I have been setting up many games in launchbox and i have come across a few specific pc games that i cannot remap keys and i will need to use AHK or Vjoy to get them working properly.  I was wondering if launchbox can be setup to run the scripts for just these specific games when i launch them and close the application after exiting the game.

Can i add these to additional applications under the game edit menu?  Looking for guidance on the best way to set this up on a per game basis. 

Thanks

Link to comment
Share on other sites

I did setup an AHK script and got it to work as an additional application. Thanks for the confirmation! 

The only problem i have now is figuring out how to close the script after the game closes. I am using this AHK script for a dosbox game to remap a bunch of keys but i could use a little guidance on the best way to make the script close itself when dosbox closes.

Link to comment
Share on other sites

I am not the most knowledgable in AHK (so there may be a better way), but what I have done is created a batch file that kills the AHK on exit from a game. Then I run it as an additional app and choose "run after main application" in the options. In my whole library I only use this on maybe 6 games and it works well. 

The batch file contains a simple script to kill the AHK.exe running.  taskkill.exe /F /IM Game_Exit.exe 

You would replace Game_Exit.exe with the actual name of the AHK script .exe you are using. 

 

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