I've though about asking on the AHK support list, but I'm not sure how to characterize the problem to ask the question properly.
What do we believe the problem is exactly?
As I see it, we have 3 problems:
1) Script does not pause with MAME in Win98. (Possibly keyhook problem, but odd because script does work correctly in Win98 if you simply load it and try to launch Johnny from an application other than MAME.
2) Unmodified script (Method 4) gets confused when pausing and unpausing MAME.
3) Modified script (Method 5) is always active and should be only active with MAME paused, you posted earlier about this. We need a way for the script to monitor whether MAME is running or paused . . .
My own experimentation a week or two ago seemed to show that MAME was not getting the unpause key, or possibly was getting two of them in very fat succession (on the pacman startup screen I would see the test pattern change one step).
My tests seemed to reflect that also . . .
but if you say it works when calling rfanview or cpviewer in the scrips, then maybe I need to rethink my original conclusion.
That was NOT what I said. What I said was Method 5 (launch from a separate Hotkey after MAME is paused) worked when calling IrfanView and was faster than calling Johnny5. Therefore, possibly it would be less problematic to call Irfanview than Johnny5 when MAME was paused (Method 4), but I did NOT test this out.
I'll try and play with it more this weekend.
Thanks