Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Street Fighter IV [ AutoHotkey Script Updated w/ PPJoy for Keyboard Encoders ]  (Read 23143 times)

0 Members and 1 Guest are viewing this topic.

Sosetsuken

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 133
  • Last login:November 10, 2014, 02:13:46 pm
  • Da Daaah Da Daaah Da, Da Da Daaah Da
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
« Last Edit: July 09, 2009, 04:58:10 am by Sosetsuken »

SQrL

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:November 24, 2014, 02:00:29 pm
  • The Game is Never Over!
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #1 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 :)

Sosetsuken

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 133
  • Last login:November 10, 2014, 02:13:46 pm
  • Da Daaah Da Daaah Da, Da Da Daaah Da
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #2 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?

SQrL

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:November 24, 2014, 02:00:29 pm
  • The Game is Never Over!
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #3 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?

Sosetsuken

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 133
  • Last login:November 10, 2014, 02:13:46 pm
  • Da Daaah Da Daaah Da, Da Da Daaah Da
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #4 on: July 01, 2009, 07:05:51 pm »
How does it run SF4, pretty good?

SQrL

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:November 24, 2014, 02:00:29 pm
  • The Game is Never Over!
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #5 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?

Sosetsuken

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 133
  • Last login:November 10, 2014, 02:13:46 pm
  • Da Daaah Da Daaah Da, Da Da Daaah Da
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #6 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

ivwshane

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1039
  • Last login:April 23, 2025, 06:30:06 pm
    • My first mame cab! (WIP)
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #7 on: July 03, 2009, 01:23:49 am »
I haven't received my copy yet but what exactly is the purpose of this script?

Sosetsuken

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 133
  • Last login:November 10, 2014, 02:13:46 pm
  • Da Daaah Da Daaah Da, Da Da Daaah Da
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #8 on: July 03, 2009, 09:50:07 pm »
To automate running it, ie./ for Arcade Cabs.

ivwshane

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1039
  • Last login:April 23, 2025, 06:30:06 pm
    • My first mame cab! (WIP)
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #9 on: July 04, 2009, 03:01:18 pm »
Will it work with mala? Or can mala simply point to the exe and run it?

Sosetsuken

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 133
  • Last login:November 10, 2014, 02:13:46 pm
  • Da Daaah Da Daaah Da, Da Da Daaah Da
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #10 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.

Visitor Q

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1187
  • Last login:May 01, 2019, 09:09:30 am
  • The Saw Is Family
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #11 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?
“Woe be unto him who opens one of the seven gateways to hell, because through that gateway evil will invade the world."

nickynooch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:August 29, 2020, 02:54:00 am
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #12 on: July 06, 2009, 01:46:31 pm »
Same question for Maximus Arcade.

Todd H

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 658
  • Last login:August 26, 2024, 02:23:32 pm
  • It's Gameday!
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #13 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.

Visitor Q

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1187
  • Last login:May 01, 2019, 09:09:30 am
  • The Saw Is Family
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #14 on: July 06, 2009, 03:02:22 pm »
I heard this is only a "enter" key press to get past the screen.
“Woe be unto him who opens one of the seven gateways to hell, because through that gateway evil will invade the world."

Visitor Q

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1187
  • Last login:May 01, 2019, 09:09:30 am
  • The Saw Is Family
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #15 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.
“Woe be unto him who opens one of the seven gateways to hell, because through that gateway evil will invade the world."

Sosetsuken

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 133
  • Last login:November 10, 2014, 02:13:46 pm
  • Da Daaah Da Daaah Da, Da Da Daaah Da
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #16 on: July 09, 2009, 04:57:13 am »
Updated First post with a PPJoy version for Keyboard Encoders.

JaXxX

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:March 13, 2012, 11:00:07 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.

xxkodemanxx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 58
  • Last login:August 18, 2012, 12:50:47 pm
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #18 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

xxkodemanxx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 58
  • Last login:August 18, 2012, 12:50:47 pm
Re: Street Fighter IV [ PC AutoHotkey Script ]
« Reply #19 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!
« Last Edit: July 29, 2009, 12:57:35 am by xxkodemanxx »

Alkis30

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:September 14, 2018, 07:14:46 am
Has anyone got it working in Maximus Arcade ; If so, please post it. Thanks.

nickynooch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:August 29, 2020, 02:54:00 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

xxkodemanxx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 58
  • Last login:August 18, 2012, 12:50:47 pm
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!

FellipeBr

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:October 04, 2014, 09:23:46 pm
Somebody knows how I can use that to work with MaLa?

Sky Zero

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:June 25, 2010, 03:14:58 pm
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!