It would also help if Tiger-Heli didn't screw up and post the link to THIS forum. Can't trust that guy to do anything right.
Link to the discussion on Johnny5, AHK, etc should have gone to here:
http://fe.donkeyfly.com/forum/index.php?board=12.0My step by step set-up on setting up the batch files is here:
http://forum.arcadecontrols.com/index.php?topic=39449.0Recent developments - You should be using the latest daily Beta for Johnny from
http://fe.donkeyfly.com/forum/index.php?topic=119.msg943#msg943 (download and change from .txt to .exe).
This version contains a glitch in the loffilters.txt reading section, but all (known) other bugs are fixed. HC has fixed the above glitch but not released that version yet.
The above version also now automatically searches for the parent game if you enter a clone, so you no longer need to send the -cloneof parameter.
This means that you no longer need to pass %2 to the batch file and that you have to edit the AHK script to remove this callout.
If you need more help, post back at what point you are getting stuck.
UPDATE: Also, I forgot to mention that it works best if MAME, MAMEwah, and your regular desktop are all running at the same resolution (800x600, 1024x768, etc.). It looks excellent under these circumstances. If one of these is set different, it may still work, but screen output may not be as pretty.
Also, sometimes you have to press P twice to get the viewer to display or to return and re-start MAME. Not a big deal, but the final version of the AHK script should fix this, when it's released (if HC or I figure out a solution . . .)