Main > Software Forum
Atari Jaguar I need an ESC Cab friendly emu hack Jcrouse or any one else?
mrclean:
Atari Jaguar I need an ESC Cab friendly emu hack Jcrouse or any one else? Baically i need as stated a Jaguar emu that will exit when i hit the ESC key any clues as to where I can snag this ? :blah:
headkaze:
Try this AutoIt script. I just wrote it so it's untested but it should work okay. Just replace emu.exe with the executable name of the Jaguar emulator, compile the script and place it into your emu's folder and run it instead of your emu's exe.
--- Code: ---; Basic AutoIt script to close an emulator using ESC
; Run the Emulator
Run(@ScriptDir & "\emu.exe");
; Define Kill Key
HotKeySet ("{ESCAPE}", "close_emu")
; Kill the Emulator
Func close_emu ()
ProcessClose ("emu.exe")
Exit
EndFunc
; Main Loop
While 1
Sleep (500)
If ProcessExists ('emu.exe') = 0 Then Exit
WEnd
Exit
--- End code ---
Howard_Casto:
I can tell you from my wrapper coding experience. It'll work but it's sloppy.
You want to try to avoid "hard" termination if possible.
The auto setting in my command line wrapper basically does the following:
Try pressing alt+f4... wait a sec.
If the process still exists post a close message to the window... wait a sec.
If the process still exists close the process.
Of course this is a generic solution, for specific emus you can use the one that works best.
headkaze:
--- Quote from: Howard_Casto on September 26, 2006, 12:05:57 am ---I can tell you from my wrapper coding experience. It'll work but it's sloppy.
You want to try to avoid "hard" termination if possible.
The auto setting in my command line wrapper basically does the following:
Try pressing alt+f4... wait a sec.
If the process still exists post a close message to the window... wait a sec.
If the process still exists close the process.
Of course this is a generic solution, for specific emus you can use the one that works best.
--- End quote ---
Thats a good point using SendMessage with WM_CLOSE is much cleaner. AutoIt probably supports it.
biron:
--- Quote from: mrclean on September 25, 2006, 09:28:10 pm ---Atari Jaguar I need an ESC Cab friendly emu hack Jcrouse or any one else? Baically i need as stated a Jaguar emu that will exit when i hit the ESC key any clues as to where I can snag this ? :blah:
--- End quote ---
i use project tempest in my cab. doesn't work perfect, but ok.
http://pt.emuunlim.com/
you may try an old version, the new versions doesn't use esc to exit..
Navigation
[0] Message Index
[#] Next page
Go to full version