Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Sosetsuken on July 01, 2009, 05:29:02 pm

Title: Street Fighter IV [ AutoHotkey Script Updated w/ PPJoy for Keyboard Encoders ]
Post by: Sosetsuken on July 01, 2009, 05:29:02 pm
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;

Code: [Select]
#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:

Code: [Select]
#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
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: SQrL on July 01, 2009, 06:34:10 pm
NICE!

thanks...
I pre-pended it with code that will auto load my two PPJoy .ini files so that two player cab controls can be used.

SFIV is a great addition to a home cab :)
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: Sosetsuken on July 01, 2009, 06:38:22 pm
Hey SQ, did you get PPJoy working mate? :D

EDIT: Lol nvm, just read your other thread, GJ on getting PPJoy working,

Btw, what spec is your Arcade PC?
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: SQrL on July 01, 2009, 07:00:42 pm
nothing fancy...

AMD X2 Dual Core 5000+ 2.60 GHz
2 GB RAM
Groovy Game Gear: KeyWiz40-ST 


Btw, what spec is your Arcade PC?
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: Sosetsuken on July 01, 2009, 07:05:51 pm
How does it run SF4, pretty good?
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: SQrL on July 01, 2009, 07:12:08 pm
Plays great...
oh yeah, i have a GeForce 8600 GT GFX Card as well (guess that is kinda important ;))
i toned down the resolution to 1024 by something.

How does it run SF4, pretty good?
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: Sosetsuken on July 01, 2009, 07:14:36 pm
Ah nice thanks for that, getting a some new parts for my cab soon.  Probably Phenom II 720 BE and a Radeon 4850/4770 (for Soft15khz).  So relieved theres a 640x480 option for my arcade monitor :D
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: ivwshane on July 03, 2009, 01:23:49 am
I haven't received my copy yet but what exactly is the purpose of this script?
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: Sosetsuken on July 03, 2009, 09:50:07 pm
To automate running it, ie./ for Arcade Cabs.
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: ivwshane on July 04, 2009, 03:01:18 pm
Will it work with mala? Or can mala simply point to the exe and run it?
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: Sosetsuken on July 06, 2009, 11:22:10 am
No Mala can't directly point to the EXE, because if you set it up in Mala like that, it will only launcher a little window where you have options and a 'start game' button.
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: Visitor Q on July 06, 2009, 12:15:57 pm
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;

Code: [Select]
#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.

Anyone try this with Game Ex yet?
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: nickynooch on July 06, 2009, 01:46:31 pm
Same question for Maximus Arcade.
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: Todd H on July 06, 2009, 02:18:45 pm
I'm gonna play around with this script and see if I can get it working with Maximus Arcade.
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: Visitor Q on July 06, 2009, 03:02:22 pm
I heard this is only a "enter" key press to get past the screen.
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: Visitor Q on July 06, 2009, 08:47:52 pm
I heard this is only a "enter" key press to get past the screen.

I got this one working in Game Ex if anyone needs, it's an easy fix.
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: Sosetsuken on July 09, 2009, 04:57:13 am
Updated First post with a PPJoy version for Keyboard Encoders.
Title: Re: Street Fighter IV [ AutoHotkey Script Updated w/ PPJoy for Keyboard Encoders ]
Post by: JaXxX on July 27, 2009, 09:27:50 am
Has anyone set SFIV to work with MALA FE? With the script here when I quit, the HSHIDE black screen is still up and doesn't return to the FE. I made a more basic script that just launches and send the 'enter' key, that one returns to MALA but I still have to alt-tab out and back in for the controls to start working again.
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: xxkodemanxx on July 28, 2009, 12:41:50 pm
Updated First post with a PPJoy version for Keyboard Encoders.


sorry if this is an obvious thing..

but if i use this with that PPjoy..

am i able to play SF4 with my ipac and 2 players?

someone needs to make a tut lol
Title: Re: Street Fighter IV [ PC AutoHotkey Script ]
Post by: xxkodemanxx on July 28, 2009, 06:46:41 pm
I want to use the PPJoy script.

but im only using 1 virtual ppjoy joystick with key mapping.

I tried deleting the part about running a joy2.ini and only the joy1.ini
and even renamed my ini to joy1 and put it in the C.Users>arcade>documents.

but doesnt seem to work..

Can someone explain better where I should put my Keyboard setup ini
and what to take out if im only using 1 virutal joy?

hope that makes sense

thanks!
Title: Re: Street Fighter IV [ AutoHotkey Script Updated w/ PPJoy for Keyboard Encoders ]
Post by: Alkis30 on July 30, 2009, 07:54:52 am
Has anyone got it working in Maximus Arcade ; If so, please post it. Thanks.
Title: Re: Street Fighter IV [ AutoHotkey Script Updated w/ PPJoy for Keyboard Encoders ]
Post by: nickynooch on July 30, 2009, 11:14:19 am
Has anyone got it working in Maximus Arcade ; If so, please post it. Thanks.

See this:
http://forums.maximusarcade.com/viewtopic.php?f=5&t=2008
Title: Re: Street Fighter IV [ AutoHotkey Script Updated w/ PPJoy for Keyboard Encoders ]
Post by: xxkodemanxx on July 31, 2009, 12:41:16 am
still need help configuring it with ppjoy.

my ppjoy works..but im using it only for player 2..and having player 1 use keyboard..
prob should switch that around...

anyways

if im not using 2 ppjoy ini's i need to know what to change on that script.
also where to put the ini's and what to name them.
like a mini tut please haha

i tried placing them as posted above..but didnt work out


thanks!
Title: Re: Street Fighter IV [ AutoHotkey Script Updated w/ PPJoy for Keyboard Encoders ]
Post by: FellipeBr on July 31, 2009, 11:22:38 am
Somebody knows how I can use that to work with MaLa?
Title: Re: Street Fighter IV [ AutoHotkey Script Updated w/ PPJoy for Keyboard Encoders ]
Post by: Sky Zero on September 01, 2009, 02:19:23 am
Sorry for the noobish question, but how do I use this with Hyperspin? I have SF4 installed and a default installation of the latest Hyperspin. Haven't set up PPJoy yet, going to do that tomorrow in the morning.

Thanks for any help!