What's new

How to remap escape key to exit program

catware11

New member
I am running Project64 within a Mame cabinet using MameWah frontend and needed to remap the escape key to exit the program instead of it toggling fullscreen, as all my other emulators close with the escape key. I tried various combinations of unpacking programs and resource editors, and here is a step-by-step combination that works:

1. Download "CASPR v1.012" & "CasprGui" from this page: http://www.exetools.com/unpackers.htm. Extract both .zip files in same directory.
2. Download "eXeScope" from this page: http://hp.vector.co.jp/authors/VA003525/Eindex.htm. Extract into any directory.
3. Run "CASPRGUI.exe". Leave Options unchecked, click "Select" and select your "Project64.exe" file in its install directory. Click "Unpack". You should see "Unpack Successful". Close CasprGui.
4. Go to your Project64 directory in Windows Explorer. Rename "Project64.exe" to "Project64 (original).exe" or something similar. Rename "Project64.ex_" to "Project64.exe". If you don't see the file extension, go to Tools->Folder Options->View and uncheck "Hide file extensions for known file types"
5. Run "eXeScope.exe" and go to File->Open "Project64.exe" (what was "Project64.ex_"). Expand Resource->Accelerator->141.
6. Find the line "ESC,40123,VIRTKEY,NOINVERT" and change to "ESC,40005,VIRTKEY,NOINVERT" (just the number changes). Go to File->Close and select "Okay" at the dialog box. Close eXeScope.
7. It should now work. I was unsuccessful at repacking the .exe with ASPack, but oh-well. The only difference is its size is 617KB instead of 140KB. I also have a "DirectDraw6 Error.log" created when exiting, but it also creates when pressing Alt-F4 in fullscreen mode with the original .exe file. It seems to overwrite itself so it won't expand incrementally with subsequent program exits.

Update: I see the .log occurs with the default video plug-in. Orkin's glN64.dll doesn't generate it.

Enjoy!
 
Last edited:

Top