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: AHK - 2 Joystick Buttons for 1 command  (Read 1225 times)

0 Members and 1 Guest are viewing this topic.

EssexMame

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 472
  • Last login:May 20, 2025, 09:13:39 am
  • Mame Weekender
AHK - 2 Joystick Buttons for 1 command
« on: March 08, 2015, 01:40:07 pm »
Hi,
I want my gamepad Select AND Start buttons, together, to Quit the Emulator (or MALA). Simply, send ESC.

I did a simple Autohotkey script which actually appears to work on occasion but mostly Pressing START ONLY still causes the quit to fire!

My script is as follows, which I have compiled and then I run it before running my FE (Mala). However, Start alone should start the selected game but it actually fires ESC without Joy9 even being pressed.

Joy9 & Joy10::Send {Esc}


empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:June 22, 2025, 10:00:52 am
    • My personal forum
Re: AHK - 2 Joystick Buttons for 1 command
« Reply #1 on: March 08, 2015, 03:27:10 pm »
Hi,
I want my gamepad Select AND Start buttons, together, to Quit the Emulator (or MALA). Simply, send ESC.

I did a simple Autohotkey script which actually appears to work on occasion but mostly Pressing START ONLY still causes the quit to fire!

My script is as follows, which I have compiled and then I run it before running my FE (Mala). However, Start alone should start the selected game but it actually fires ESC without Joy9 even being pressed.

Joy9 & Joy10::Send {Esc}

If you are not a programmer you could take a look to my AllInOneFYC program.
Greetings.

R083RT0

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:Yesterday at 10:31:59 am
    • my videos
Re: AHK - 2 Joystick Buttons for 1 command
« Reply #2 on: April 04, 2015, 07:44:26 pm »
~1joy10::
if not GetKeyState("1joy9","P")
return
Send {Esc}
return

I think this script will work  :-\