Main > Main Forum

Frontend feature req: Display image when emulator paused

<< < (3/5) > >>

unclet:
Ok, I had to read "Method 5" as well as download the script from that same page ....

The script file downloaded was called "j5script_afk.zip", but inside there is a file with the extension "ahk" instead.

Your description states in order to use the script I would need to install Johnny5, however, I would assume this is a description explicitly for usage with Mame.  Since you indicated the AHK script is standalone then I would assume I do not have to install Johnny5 as long as I do not want Mame key mappings to be displayed ... correct?   Basically, I just need to update thsi script to interact with my non-Mame emulators rather than Johnny5.

I will read more when I have time .....  probably another day .....

Tiger-Heli:

--- Quote from: unclet on March 15, 2007, 02:21:26 pm ---Ok, I had to read "Method 5" as well as download the script from that same page ....
The script file downloaded was called "j5script_afk.zip", but inside there is a file with the extension "ahk" instead.
--- End quote ---

j5script_af.zip but in retrospect, I don't know why I named it that.  I think AllisterFiend on here might have made the initial suggestion or helped me figure it out, so that's probably how it happened.  Anyway, the actual script file should be a .ahk file as you say.


--- Quote ---Your description states in order to use the script I would need to install Johnny5, however, I would assume this is a description explicitly for usage with Mame.  Since you indicated the AHK script is standalone then I would assume I do not have to install Johnny5 as long as I do not want Mame key mappings to be displayed ... correct?
--- End quote ---

Correct - Those instructions were assuming you were using the script with Johnny5 (not necessarily with MAME), which 95% of users would be.  For your usage, you need to install AutoHotKey and Irfanview and modify the script to call Irfanview per the instructions that I mentioned above which are located on the Method 1 page under AHK SCRIPT IMPLEMENTATION.


--- Quote ---   Basically, I just need to update thsi script to interact with my non-Mame emulators rather than Johnny5.
I will read more when I have time .....  probably another day .....
--- End quote ---

You need to update it to interact with Irfanview rather than Johnny5.  It should work with both non-MAME and Mame emulators, but I will try to test MAME compatibilty, and you might need to modify it and have a different script for each different emulator, but that is simple enough if required.

Tiger-Heli:
Two questions in case I get time to look into this:

1) Which Emu's use different keys for Pause and UnPause?

2)  I am assuming you are leaning toward Method 5.  If the Emulator uses P to Pause and Ctrl-P to unpause (and you use "Left" to launch Irfanview), I think there are two ways to set AHK up:

a)  Pressing P causes AHK to pause the Emu and sets an internal watchdog so that Left toggles the image on and off.  Pressing "Ctrl-P" closes IrfanView (if active) resets the watchdog and restarts the Emu.

b)  Pressing P causes AHK to pause the Emu and sets the internal watchdog, pressing P a second time resets the watchdog and sends "Ctrl-P" to unpause the Emu.

Option b) would make your non-MAME emu's "behave" the same as MAME and might be easier to code.  If this approach would work for you.   

unclet:
I can not remember off the top of my head which emulator(s) have different pause/unpause,  I will try to find this when I get home.   

As for 2a vs 2b ...

.. if I understand you correctly, then 2a would pause the emulator and let me see the paused game display.  I can then move the joystick left to toggle between the image.

.. for 2b, are you saying that the game would be paused and the image shown immediately?  If so, then the benefit of seeing the burning bolder prior to returning to the game would eb lost ... correct?


Perhaps I never took the time to add the emulator whcih had different keys for pausing and unpausing .... I just now I encountered one (or more) along the way.   Again, I will check tonight to see if any of my emulators have different keys to exit.  If not, then this is a moot point.

Gotta go for now .....

Tiger-Heli:

--- Quote from: unclet on March 15, 2007, 04:03:40 pm ---As for 2a vs 2b ...
.. if I understand you correctly, then 2a would pause the emulator and let me see the paused game display.  I can then move the joystick left to toggle between the image.
.. for 2b, are you saying that the game would be paused and the image shown immediately?  If so, then the benefit of seeing the burning bolder prior to returning to the game would eb lost ... correct?
--- End quote ---

No, what I am saying is 2a pauses the game and let's you move the joystick left to toggle the image.  Ctrl-P then needs to be pressed to return to the game.  2b works the same way except AHK "fools" the emu so the second time you press P it actually sends Ctrl-P, so you press P twice to pause and unpause the emulator, and it works (to the user) exactly the same as MAME.


--- Quote ---If not, then this is a moot point.
--- End quote ---

Agreed, I think I have a solution for you, working on another reply, so should have that up in about a half-hour or so, then will check back tomorrow.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version