Jump to content
LaunchBox Community Forums

Muggins

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Muggins

  1. That now works great thank you both! I can exit and close the script using either the Button 12 + 1 combo or offscreen right on the dpad. Here is the working script just in case it helps anyone else... #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. #SingleInstance Force SetWorkingDir C:\Utils\LaunchBox\Emulators\RPCS3_Lightgun Process, Exist, Lightgun.exe If (!ErrorLevel = 0) { Process,Close,Lightgun.exe sleep, 1000 } Run, C:\Utils\Sinden Lightguns\Mouse Mode - RPCS3\Lightgun.exe Run, C:\Utils\LaunchBox\Emulators\RPCS3_Lightgun\rpcs3.exe C:\Utils\LaunchBox\Emulators\RPCS3_Lightgun\games\BCES01070\PS3_GAME\USRDIR\razingstorm.self --config "C:\Utils\LaunchBox\Emulators\RPCS3_Lightgun\config\custom_configs\config_BCES01070_tcrs.yml", ,Hide sleep, 1000 Run, C:\Utils\NoMousy\NoMousy.exe /hide ;Hides mouse cursor with NoMousy Process, WaitClose, rpcs3.exe ExitRoutine() ;Start Button $MButton:: { send {LButton down} sleep, 60 send {MButton down} sleep, 20 send {MButton up} sleep, 60 send {LButton up} } Return $Esc::ExitRoutine() ExitRoutine() { Process,Close,Lightgun.exe Process,Close,rpcs3.exe Run,taskkill /im "rpcs3.exe" /F Run, C:\Utils\NoMousy\NoMousy.exe ;Restores mouse cursor Sleep, 500 ExitApp }
  2. Tried that thanks, now when I press the front left on my Sinden light gun the whole thing closes as if I had pressed the escape key, that button is mapped as the middle mouse button in the Sinden software. Sorry, I am being a pain!
  3. Tried that thanks but it doesn't seem to do anything different to the previous one, is there a way to see what is going on with the script?
  4. Hi, yes it says Button 12 + Button 1 in the Exit Game button mapping. This is the script... #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. #SingleInstance Force SetWorkingDir C:\Utils\LaunchBox\Emulators\RPCS3_Lightgun Process, Exist, Lightgun.exe If (!ErrorLevel = 0) { Process,Close,Lightgun.exe sleep, 1000 } Run, C:\Utils\Sinden Lightguns\Mouse Mode - RPCS3\Lightgun.exe Run, C:\Utils\LaunchBox\Emulators\RPCS3_Lightgun_2Player\rpcs3.exe C:\Utils\LaunchBox\Emulators\RPCS3_Lightgun_2Player\games\BCES01070\PS3_GAME\USRDIR\timecrisis4.self --config "C:\Utils\LaunchBox\Emulators\RPCS3_Lightgun_2Player\config\custom_configs\config_BCES01070_tc4_2p.yml" sleep, 1000 Run, C:\Utils\NoMousy\NoMousy.exe /hide ;Hides mouse cursor with NoMousy ;Start Button $MButton:: send {LButton down} sleep, 60 send {MButton down} sleep, 20 send {MButton up} sleep, 60 send {LButton up} Return $Esc:: Process,Close,Lightgun.exe Process,Close,rpcs3.exe Run,taskkill /im "rpcs3.exe" /F Run, C:\Utils\NoMousy\NoMousy.exe ;Restores mouse cursor sleep, 500 ExitApp Return
  5. Hi folks, I launch RPCS3 Lightgun games via AHK scripts so no emulator is selected in Launchbox. I can exit the games using a button on the Lightgun (When offscreen) and pressing escape on the keyboard but would also like them to exit and the script terminate in the same way when pressing Buttons 12 + 1 on my cabinet as do my other games. Currently when I press Buttons 12 + 1 the emulator closes but the script does not complete / terminate, leaving AHK and the Lightgun software running. Would anyone know of a method to get Launchbox to send the escape key using this method please? Many thanks!
×
×
  • Create New...