Main > Software Forum
Johnny 5 beta 2.0 released!
papaschtroumpf:
one ofthe things you could do is maintain state information: if P was pressed once and MAME is the active window, then MAME is paused, if P is pressed again while MAME is the active window, then it's not paused anymore.
There is a (small?) danger of getting out of sync however, but if you can't have a dedicated button for whatever reason, this could be a workaround. Makes the script a little more complicated becasue now you have to check which window was active when P was pressed, so that you ignore it if the user presses P while the johnny display is up.
Tiger-Heli:
--- Quote from: papaschtroumpf on October 12, 2005, 01:21:39 pm ---one ofthe things you could do is maintain state information: if P was pressed once and MAME is the active window, then MAME is paused, if P is pressed again while MAME is the active window, then it's not paused anymore.
There is a (small?) danger of getting out of sync however, but if you can't have a dedicated button for whatever reason, this could be a workaround. Makes the script a little more complicated becasue now you have to check which window was active when P was pressed, so that you ignore it if the user presses P while the johnny display is up.
--- End quote ---
Good thought.
papaschtroumpf:
HC's script does not atttempt to check which window was active when the key was pressed to "filter" it. It maintains state information based on key presses only.
On the other hand I don't know that I have seen HC's script get out of sync, ever.
The problem with the script is that MAME is not seeing the "unpause" keypress for some reason, but I don't believe it's a flow in the state information logic, the script gets out of sync because MAME didn't do what it's supposed to.
Tiger-Heli:
--- Quote from: papaschtroumpf on October 12, 2005, 01:38:52 pm ---On the other hand I don't know that I have seen HC's script get out of sync, ever.
--- End quote ---
You just said three posts above that it did . . . (no, I know what you mean, but if the script is okay but MAME isn't, the end result is the same . . .)
BuZz880:
Ok,
I've worked all this out but the commandline I need as described below:
For speed reasons, the way I want to use Johnny5 is by pre-generating a bunch of png's using a batch process (thanks listgen) that I will setup and with the -justprint feature.
Once I do this, what is the command line to have Johnny5 display my png? I do not see it in the readme or I wouldn't ask. I will be naming all my png's after the parent rom for example sf2.png, mk2.png, you get it. Johnny5 will be called via the AHK script (which I love by-the-way).
(oh and yes I know I could probably just modify the AHK script to call irfanview to show the PNG but I'm not so sure how and before I tackled it I thought it might be easier just to do this plus this leaves me the option of having Johnny 5 compile an image on the fly if one doesn't already exist for whatever reason.)
Thanks.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version