Main > Software Forum

Johnny 5 beta 2.0 released!

<< < (4/10) > >>

papaschtroumpf:
The AHK script, as is, assumes that the user uses a standard setup with "P" for the MAME pause key and "Esc" to exit Johnny5.
If your keys are different, you will need to modify the script or it won't work properly.

if your mame pause key is not P (my keywiz encoder doesn't generate the P key by default, so I changed MAME to use Q), you will need to replace the "p" with whatever key in the following lines:
~P::
Send, {p down} {p up}

if you set up Johnny5 to exit on a different key than escape, you will need to change Esc in the script with the corresponding key.
Send, {Escape down}
Send, {escape up}
~Escape::


Tiger-Heli:
Correct for the most part, but Escape in the script is actually the key to exit MAME. . .

--- Quote from: papaschtroumpf on October 10, 2005, 03:33:19 pm ---if you set up Johnny5 to exit on a different key than escape, you will need to change Esc in the script with the corresponding key.
Send, {Escape down}
Send, {escape up}
~Escape::

--- End quote ---
All that REALLY has to be changed is the last line ~Escape:: if you use a different key to exit MAME.

papaschtroumpf:
FYI, you can assign a block of code to multiple keys by listing them like labels:
~Z::
~X::
~LShift::
{
   do something here
}
return

papaschtroumpf:

--- Quote from: Tiger-Heli on October 10, 2005, 03:55:30 pm ---Correct for the most part, but Escape in the script is actually the key to exit MAME. . .
All that REALLY has to be changed is the last line ~Escape:: if you use a different key to exit MAME.  The key to exit Johnny is optional.

--- End quote ---

yes, it gets actually complicated: with the default settings, if you press ESC when johnny was up, then johnny terminates and unpauses MAME, so the first part of the if statement applies to the johnny exit key. If you press the ESC key when MAME was up, then the AHK script exits, so if MAME and johnny don't use the same exit key, the script needs to be modified some more.

Tiger-Heli:

--- Quote from: papaschtroumpf on October 10, 2005, 04:22:15 pm ---FYI, you can assign a block of code to multiple keys by listing them like labels:
~Z::
~X::
~LShift::
{

--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version