Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: yakk11 on March 30, 2013, 09:14:58 pm

Title: Hyperspin Autohotkey key combo presses
Post by: yakk11 on March 30, 2013, 09:14:58 pm
I am trying to fix the exit for my Taito Type X games.  I have set them up to exit using the esc key.  All of my other emulators are set up to exit holding 1 and up on the joystick.  I have found some commands to add to my Taito Type X ahk, but can't find any that would translate up and 1 to hitting the escape key.  I hope that makes sense.  Any help would be appreciated.  I have searched everywhere.
Title: Re: Hyperspin Autohotkey key combo presses
Post by: nitz on March 31, 2013, 04:36:13 am
Assuming up on your joystick is mapped to the up arrow key on the keyboard, this should work:

Code: [Select]
$1::
send 1
GetKeyState, keystate, up
If (keystate = "D")
send {esc}
return

Note that you'll probably have to start holding up first and then press 1. To reverse this, simply switch up and 1 in the script.

Hope this helps.
Title: Re: Hyperspin Autohotkey key combo presses
Post by: yakk11 on March 31, 2013, 10:17:33 am
I added this line to the end of my Taito Type X script, but it doesn't seem to work.  I have the escape key setup for the exit using the taito type x config exe. 

I also tried enabling keymapping and set it to ahk.  I took the code you posted and pasted it in notepad and saved as Taito Type X.ahk.  Doing it that way causes HyperLaunch to throw out an error saying i don't have a matching ahk.   :banghead:

Title: Re: Hyperspin Autohotkey key combo presses
Post by: nitz on April 02, 2013, 09:05:43 pm
I have no idea how HyperLaunch and AHK interact with each other, so I can't help you there. But if you want to post your complete Taito Type X script, I may be able to see if there's a problem.