Main > Software Forum

How-to: Make ZSNES exit when you press ESC

Pages: << < (2/2)

Lilwolf:

Way COOL!  I will take a look at it tonight.



Howard_Casto:


--- Quote from: Minwah on August 09, 2002, 05:02:57 am ---
izaram, you've made my day :)

I've been trying to do this, and I posted on the ZSNES board too.  I think someone suggested at the time they could add a 'Use ESC to quit' tickbox or something.  But I didn't hold my breath...

I couldn't get HowardC's wrapper to work on this either unfortunately :(

I've been using the '3' (coin) button to quit so far, but I've quit more than a few times while accidentally 'inserting a coin'.

I'll get a hex editor and give your solution a try later, thanks again for your persistance :)

Now I just need some way of quitting Gens...

--- End quote ---


Btw nice find Izaram.  I've noticed that emus that have been ported from dos seldom work with my wrappers, which is most unfortunate.  I'm working on an alternate solution though.... Right now I send a message to the application that basically says "windows is shutting down, please close up quickly"  which tricks it into shutting down properly.  I might have to actually kill the process which Will require extensive testing before I release it as it can cause severe problems if not coded properly.

Anyway, I'll keep you all posted...  One question, I've never ran into a need for one but you you think a mouse simulator wrapper might be useful?  You know for apps that don't even have keyshortcuts.  

Jakobud:


--- Quote from: Minwah on August 09, 2002, 05:02:57 am ---

I've been trying to do this, and I posted on the ZSNES board too.  I think someone suggested at the time they could add a 'Use ESC to quit' tickbox or something.  But I didn't hold my breath...

but I've quit more than a few times while accidentally 'inserting a coin'.

--- End quote ---


Hehe...why were you inserting coins for credits in a Super Nintendo emulator?? :D

But seriously, thanks for the hex editing tip, man.  I don't understand why every emulator doesn't give you the option of setting hotkeys for EVERYTHING.  The one emulator I've seen that is the best example of letting you control EVERYTHING with self defined hotkeys is VirtualNES.  Probably the best Windoze NES emulator out there.  And like I said, you can completely redefine EVERY hotkey for everything...

Jakobud

Howard_Casto:

Yeah hardcoded keys piss me off.  They make my job of a universal fe a lot harder.  For any of you emu programmers reading this:

It takes all of 5 minutes to setup a redefinable keys structure in your emu.  Do us all a favor and set that up first thing from now on. :-)



MK:

It's a pity the DOS version of ZSNES messes up my soundcard whenever I use the quick exit function  :'(

I'll stick to File -> Quit until it's fixed...

Thanks for the tip anyway!

Pages: << < (2/2)

Go to full version