Jump to content
LaunchBox Community Forums

Possible to import a RPCS3 game but have it launch using a .ahk scrip?


MrRetro1970

Recommended Posts

Hi All,

 

i have a few RPCS3 games that use my Sinden Lightgun and i needed to make AHK scrips to map buttons for it to get past the calibration screens in these games. Is it possible to launch the game using the AHK scrip i created instead of having to import the rom using the direct path?

Link to comment
Share on other sites

It seems like there should be an easier way, but you could create a new emulator and have it point to your script.  Then have those game use this new emulator.  LaunchBox will pass the "full/path/to/the/rom/file.ext" to your script.  Have your script do its pre-game Sinden thing (if any), then start the emulator with the appropriate parameters and "%1% " as the path to the ROM (or just the ROM filename, depending on your check boxes).  Then do the AHK voodoo to get past the calibration screens.

This way you keep the ROMs path (in LaunchBox) as it should be.  And if you need to change something later, you only have to change the emulator (or edit the script).

 

Alternately, you could add an additional app to these games.  Have the app point to the AHK script and check 'Launch Before Main Application'.  At the top of your script, add something along the lines of    Process, Wait, emulator.exe   to wait for the emulator to be running.  You might need to then add a   WinWaitActive ahk_exe emulator.exe to make sure it's the active window (and maybe a short sleep timer to make sure it's fully loaded?).  

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