Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Johnny5 ahk help  (Read 1062 times)

0 Members and 1 Guest are viewing this topic.

radnads

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:October 07, 2019, 06:22:45 pm
  • I want to build my own arcade controls!
Johnny5 ahk help
« 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?

diabolic

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 42
  • Last login:August 26, 2007, 02:36:22 pm
Re: Johnny5 ahk help
« Reply #1 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.




radnads

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:October 07, 2019, 06:22:45 pm
  • I want to build my own arcade controls!
Re: Johnny5 ahk help
« Reply #2 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

diabolic

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 42
  • Last login:August 26, 2007, 02:36:22 pm
Re: Johnny5 ahk help
« Reply #3 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::
{

radnads

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:October 07, 2019, 06:22:45 pm
  • I want to build my own arcade controls!
Re: Johnny5 ahk help
« Reply #4 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?