MrRetro1970 Posted August 28, 2023 Share Posted August 28, 2023 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? Quote Link to comment Share on other sites More sharing options...
MrRetro1970 Posted August 28, 2023 Author Share Posted August 28, 2023 i guess what im asking is if the AHK scrip can be imported as a non rom Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted August 28, 2023 Share Posted August 28, 2023 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?). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.