So far I have my ps1 lightgun games running a different emulator (which works with my aimtraks) from the same wheel as all other ps1 games, now I need help with my ahk as I am a complete noob when it comes to ahk, Is there a cleaner way of doing the following. My script so far:
Process, Wait, pcsxr-lightgun.exe
Process,Close, HyperSpinHelper.exe
sleep, 5000
run C:\Windows\System32\DisplaySwitch.exe /external
sleep, 3000
WinGetActiveTitle, title
WinMinimize, %title%
WinMaximize, %title%
Process,WaitClose, pcsxr-lightgun.exe
run C:\Windows\System32\DisplaySwitch.exe /extend
I have to minimize and maximize the window because there is a 10mm border at the bottom of the screen, if I shoot this it activates the hyperspin window and the emu loses focus, anybody know a better way of doing this as the hyperspin window is shown for 1 second which looks fugly ? I tried just maximising the window but it doesn't change. Just need to look into looping this script so it stays active. Im hoping to use this for all my emulators and lightgun games needing only to change the name of the process in each script.