Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: EssexMame on March 08, 2015, 01:40:07 pm

Title: AHK - 2 Joystick Buttons for 1 command
Post by: EssexMame 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}

Title: Re: AHK - 2 Joystick Buttons for 1 command
Post by: empardopo 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.
Title: Re: AHK - 2 Joystick Buttons for 1 command
Post by: R083RT0 on April 04, 2015, 07:44:26 pm
~1joy10::
if not GetKeyState("1joy9","P")
return
Send {Esc}
return

I think this script will work  :-\