Jump to content

How to let HyperLaunch to send Alt+F4 by pressing Esc?


tpax

Recommended Posts

Posted

Hi,

I just configured my snes9x for SNES. Everything works fine so far, besides the save issue. I read on the forums, that HyperLaunch kills the emulator-process, instead of quitting it properly. So I need to configure HyperLaunch.ahk, so it sends Alt+F4 instead of CloseProcess. How do I do that? Can someone write me those few lines or link me to a thread with similar problem? I searched the forums for a long time, and found nothing related.

Thanx.

tpax

Posted

first way is to disable hyperlaunch and configure snes to exit on esc

second way is to comment out esc key in snes part of hyperlaunch, again you have to configure snes to exit on esc

third way is to use WinClose instead of closeprocess. winclose sends alt-f4, closeprocess kills process, or you can send alt-f4 manually Send !{F4}

you can also use new hyperlaunch 2.0 which should have everything solved out of the box (i'm not sure if there is a module for snes)

Posted

Thank you for your answer. Here is how I solved it:

Just wrote a small function to exit snes9x:

CloseProcessAlt1:
Hotkey, %exitScriptKey%, Off
Send, {ALTDOWN}{F4}{ALTUP}
Process, WaitClose, %Executable%
Gui, Color, 000000
Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackGui
return

and replaced CloseProcess with CloseProcessAlt1 in the SNES section.

~tpax

  • 4 years later...
Posted
Thank you for your answer. Here is how I solved it:

Just wrote a small function to exit snes9x:

CloseProcessAlt1:
Hotkey, %exitScriptKey%, Off
Send, {ALTDOWN}{F4}{ALTUP}
Process, WaitClose, %Executable%
Gui, Color, 000000
Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackGui
return

and replaced CloseProcess with CloseProcessAlt1 in the SNES section.

~tpax

I know this is old thread but where do you put this code in...im a noob. And i cant get this prob to go away lol

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...