Hey guys,
Just made an AutoHotkey script for Street Fighter IV. I've tried many different was but after figuring out that the main EXE actually requires the loader EXE, I made this script because I saw a fair few people on here saying they were gonna get it;
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
Blockinput on
SetBatchLines -1
Gui +AlwaysOnTop -Caption +ToolWindow
Gui Color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
Run, SF4Launcher.exe, , Max
WinWait, STREET FIGHTER IV LAUNCHER
IfWinNotActive, STREET FIGHTER IV LAUNCHER
WinWaitActive, STREET FIGHTER IV LAUNCHER
Send, {enter}
Blockinput off
Process, WaitClose, StreetFighterIV.exe
return
ESC::
Process, Close, StreetFighterIV.exe
ExitAPP
return
Working perfectly in my cab with the newest version of HyperspinFE.
EDIT: Updated with SQrL's addition of PPJoy for Keyboard Encoders:
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
;==================================================================================================================
PPJoyEXE = "C:\Program Files\Parallel Port Joystick\PPJoyKey.exe" ; Set to PPJoy's EXE Full Path
PPJoyP1INI = "C:\Users\arcade\Documents\joy1.ini" ; Set to Player 1 Joystick INI w/ Full Path
PPJoyP2INI = "C:\Users\arcade\Documents\joy2.ini" ; Set to Player 2 Joystick INI w/ Full Path
;==================================================================================================================
Blockinput on
SetBatchLines -1
Gui +AlwaysOnTop -Caption +ToolWindow
Gui Color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
Run, %PPJoyEXE% %PPJoyP1INI%, , Min
WinWait, PPJoy Keyboard to Virtual Joystick 1
IfWinNotActive, PPJoy Keyboard to Virtual Joystick 1, , WinActivate, PPJoy Keyboard to Virtual Joystick 1
WinWaitActive, PPJoy Keyboard to Virtual Joystick 1
Run, %PPJoyEXE% %PPJoyP2INI%, , Min
WinWait, PPJoy Keyboard to Virtual Joystick 2
IfWinNotActive, PPJoy Keyboard to Virtual Joystick 2, , WinActivate, PPJoy Keyboard to Virtual Joystick 2
WinWaitActive, PPJoy Keyboard to Virtual Joystick 2
Run, SF4Launcher.exe, , Max
WinWait, STREET FIGHTER IV LAUNCHER
IfWinNotActive, STREET FIGHTER IV LAUNCHER
WinWaitActive, STREET FIGHTER IV LAUNCHER
Send, {enter}
Blockinput off
Process, WaitClose, StreetFighterIV.exe
return
ESC::
Process, Close, StreetFighterIV.exe
Process, Close, PPJoyKey.exe
sleep 200
Process, Close, PPJoyKey.exe
ExitAPP
return