Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: radnads on November 07, 2005, 10:51:37 pm

Title: Johnny5 ahk help
Post by: radnads on November 07, 2005, 10:51:37 pm
Well, I love the program Howard. 
  Methods 2 and 3 work  for me flawlessly.  I am running AMD 2800, Win2000,mamewah 1.61, and mame 101. 
  The problem I am having is getting methods 4 or 5 running.  I think it  mostly has to do with AHK script.  MAME pauses and Johnny5 loads, but without labels, then can be unpaused to play again.  If i change the script J5=Johnny5.exe %1% to J5=Johnny5.exe berzerk, the labels will work for that game, but without being able to unpuase.  Where is %1% pulling from. 

Maybe this insight might help.  I have also noticed that when unpauseing out of Johnny5, MAME is running and then in 3 seconds MAME becomes pauseed without any keyboard strokes.  I am assuming this has to do with the sleep timing.

Maybe this could help you, and maybe you could help me?
Title: Re: Johnny5 ahk help
Post by: diabolic on November 07, 2005, 11:33:56 pm
I have it running great on my cabinet. 

The %1 should be coming from your batch file that calls johnny5. The batch file should get it from your front end.

My batch file that is called from mamewah is:

cd\
cd johnny5
start johnny5.ahk %1
cd\
cd mame
mame %1 %2 %3 %4
exit

In Mamewah, I use the batch file as my executable and it sends the rom name as the first parameter.



Title: Re: Johnny5 ahk help
Post by: radnads on November 08, 2005, 08:23:12 am
I will have to check my spelling but that is how I have it set up.

Mamewah opens to c:\mamebat\default.bat
which in turns opens johnny.ahk...right

I can command prompt johnny5.exe and works fine.  Its only when the script is called on. 

What is your sleep set on?

Thx
Title: Re: Johnny5 ahk help
Post by: diabolic on November 08, 2005, 06:56:48 pm
My johnny5.ahk file:

[code]
#SingleInstance force
#Persistent
; The asterisk prefix makes the remapping more complete on XP/2k/NT. For 9x systems you can remove it.
DetectHiddenWindows, On
~p::
{
Title: Re: Johnny5 ahk help
Post by: radnads on November 08, 2005, 11:39:00 pm
Checked and is the same as yours.
I run mamewah, it opens the game when selected...ok
I can pause and it pauses....ok
I press ctrl or 1 or 2 and it loads johnny5 control panel viewer...ok
After 3 or 4 seconds the control is loaded full screen but with no labels...not ok
I press crtl or 1 or 2 and it sends me back to the paused games.

everything seems to be running ok except the labeling....ahhhhhh so frustrating.  I am so close and it will be awesome and I can taste it.

Johnny5 runs fine when I check.  c:\johnny\johnny "whatever game is chosen"

labels and all

any suggestions?