is there anyway to pass the actual value of the "%romfile%" launchbox variable to an AHK script via the Additional Apps feature? I'm trying to use an AHK script to launch DemulShooter and my 2 lightgun processes but need to pass the "rom name" into my ahk script for DemulShooter but I get the literal value of %romfile% instead of the rom name. Any help would be greatly appreciated.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Process, Exist, Lightgun.exe
If (!ErrorLevel = 0) {
Process,Close,Lightgun.exe
sleep, 1000
}
for n, param in A_Args ; For each parameter:
{
MsgBox Parameter number %n% is %param%.
}
Run, C:\emulators\SindenLightGun\SindenGunBlack\SindenLightgunWindowsSoftware\SindenLightgun\Lightgun.exe
Sleep, 500
Run, C:\emulators\SindenLightGun\SindenGunBlue\SindenLightgunWindowsSoftware\SindenLightgun\Lightgun.exe
Sleep, 500
Run C:\emulators\DemulShooter\DemulShooter.exe -target=%1% -rom=%2%
Sleep, 5000
Send, !b