| Main > Software Forum |
| Johnny 5 beta 2.0 released! |
| << < (8/10) > >> |
| AllisterFiend:
--- Quote from: Tiger-Heli on October 13, 2005, 02:11:46 pm --- You answered your own question . . . You can't (AFAIK) display the image in Johnny5, you can modify the AHK script to call Irfanview. First, copy Irfanview to your images directory. Open Irfanview and select options> >properties>fullscreen and disable "show text" to keep Irfanview from showing the image name (change any other options here as need (scale image, etc.). The command line would be /fs for fullscreen, so the AHK script needs something like J5=i_view32.exe %1%.png /fs Run,%J5%, C:\images, max I haven't verified this, so the %1%.png might need one less percent sign or sth, but I think it will work. Let me know if it doesn't and you need to change something. --- End quote --- Tiger-Heli, I have tried what you said and everything works fine except for the fact that for some reason I can only get it load my .png's from the root directory of C:. I am using the Method 5 complex script and just changed around what you mentioned in the other post. I have tried to change the script around in various ways to get it to recognize subdirectories but I have had no luck. I even went to the AHK website and tried some examples that they had (not that it matters much, the last time I tried to do any type of programming was way back on my Commodore 64, BASIC RULES!!!! :D). I also had to name my .png to the rom name plus add in the .zip to the filename to get it to load the images..ex..galaga.zip.png (no big deal, just wanted to get it out there in case someone is having trouble loading their picture.) Okay, now I have a question that might seem pretty stupid but remember I have not done any programming since the days of compute! magazine (does typing them from the back of the magazine count as programming...hmmmm) It is my understanding that AHK can determine if mame is running but it cannot determine whether mame is running while paused. Is there anyway for a program to tell if mame is paused or is this something that the mame devs have to add into the mame code. The reason I ask is that I really like method 5 but being able to launch your control viewer while the game is still running is a downer, I just know in the heat of a game I will do this sooner or later and screw my game up. In other words I was wondering if a check could be added into the AHK script that would not allow you to say press the 7 key (as set up in the script) if it does not detect mame in the paused state. Hope I got my message across as I am late for work now :) and in a hurry to get out of here. Thanks for any help you guys could give. Allister Fiend P.S. thanks for the info Howard, if I decide to go with more games I will definetly set up johnny5 |
| Tiger-Heli:
--- Quote from: AllisterFiend on October 18, 2005, 07:23:12 am ---I have tried what you said and everything works fine except for the fact that for some reason I can only get it load my .png's from the root directory of C:. --- End quote --- I added details on this in my Method 2 and Method 5 pages at http://www.mameworld.net/tigerheli/johnny/. Did you copy Irfanview to the images directory, like I suggested? |
| BuZz880:
--- Quote from: AllisterFiend on October 16, 2005, 09:08:06 pm --- --- Quote from: BuZz880 on October 13, 2005, 04:56:04 pm ---I get it, thanks.. .I'll try all this later hopefully tonight otr tomorrow. --- End quote --- Just wondering if you have tried this yet. I have already created .png files with my control layout (I only have about 40 games that I run on my system) and I just want to be able to pause my game in mame and have ahk view my .png (which is named after the rom image) using ifranview. and then when I press pause again have it go back to mame and continue to play. I will also try but since I just started reading about these viewer programs, I'm a little overwhelmed. Allister Fiend P.S. I know I at least need Ifranview and AHK, but do I even need johnny 5 or any other controls program just to view a .png in fullscreen? --- End quote --- Ok, I've pretty much moved on from this but here is what I recall before I gave up: I could get Johnny5 to work properly with AFK script but found the load time unworkable on my Athlon 2500XP. I then generated static pngs for 2019 games which only took 40 minutes or so at 368x240 resoultion using a bat file process. With CPVW I could not figure out how to keep my PNG from loading in the background (ie behind MAMEWAH) I tried all variations of autodosbox, dosbox and nodosbox to no avail. The /M command didn't work well with AHK scripts either. Irfanview I think was a little better but ultimately I didn't like it since the "P" key kicks you out of the image and into the setup of the thing which is not acceptable for this purpose. So, in a word, I quit. But I did discover CPVW in this process which is capable of rendering a Control Panel quickly enough that you could dispense the static PNG idea if only you could figure out how to bring it to the front of the screen. What bugs me is I worked out a nice BAt/AHK script combo to generate a new image if one doesn't already exist (or in the case of a clone being launched to check for the parent image and display that instead) and all that process worked fine but I was stumped by the viewers. I guess with CPVW I don't need to do this anyway. |
| AllisterFiend:
--- Quote from: Tiger-Heli on October 18, 2005, 08:15:12 am --- --- Quote from: AllisterFiend on October 18, 2005, 07:23:12 am ---I have tried what you said and everything works fine except for the fact that for some reason I can only get it load my .png's from the root directory of C:. --- End quote --- I added details on this in my Method 2 and Method 5 pages at http://www.mameworld.net/tigerheli/johnny/. Did you copy Irfanview to the images directory, like I suggested? If so and it still doesn't work, you might have to use a batch file to do this. In the images directory, create a file called irfanview.bat with the following: echo off cd\ cd images i_view32.exe %1%.png /fs exit and mod the AHK script to read J5=irfanview.bat %1% Run,%J5%, C:\images, max --- Quote --- I also had to name my .png to the rom name plus add in the .zip to the filename to get it to load the images..ex..galaga.zip.png (no big deal, just wanted to get it out there in case someone is having trouble loading their picture.) --- End quote --- This sounds to me like your FE is passing galaga.zip to the script rather than just galaga. . . --- Quote ---It is my understanding that AHK can determine if mame is running but it cannot determine whether mame is running while paused. Is there anyway for a program to tell if mame is paused or is this something that the mame devs have to add into the mame code. --- End quote --- MameDev won't have to add anything. That's what papaschtroumpf was getting at in his earlier reply about maintaining state implementation. Basically, it's a matter of changing a variable when P is pressed with MAME active and not changing it when P is pressed otherwise. I don't think it would be extremely difficult to set up, but I don't know how to do it either. Ideally, I would like a solution for this as well. --- End quote --- Thank you Tiger-Heli, I solved my first two problems (your suggestion that it was my frontend led me in the right direction), I'm using Dragon King 0.99 (eagerly awaiting the new release, hint, hint!), I turned off a switch in my mame config file called send rom path and it took care of both problems. As for my third problem, I do not think I have the programming ability to figure that out, (I will try though), hopefully papaschtroumpf or someone else will come up with something (wink, wink, nudge, nudge). Has anyone tried to post over on the AHK forum for a solution? Thanks Again, Allister Fiend |
| Tiger-Heli:
I actually tested Method 5 and static images using IrfanView and it worked very well - much faster. I know you got it working, but for others, rather than another batch file, I think you could just add the path to the images into the AHK Script. |
| Navigation |
| Message Index |
| Next page |
| Previous page |