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: Hyperspin Autohotkey key combo presses  (Read 3408 times)

0 Members and 1 Guest are viewing this topic.

yakk11

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 89
  • Last login:April 23, 2025, 11:52:20 pm
Hyperspin Autohotkey key combo presses
« 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.

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: Hyperspin Autohotkey key combo presses
« Reply #1 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.

yakk11

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 89
  • Last login:April 23, 2025, 11:52:20 pm
Re: Hyperspin Autohotkey key combo presses
« Reply #2 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:


nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: Hyperspin Autohotkey key combo presses
« Reply #3 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.