Cnells2000 Posted May 7, 2020 Share Posted May 7, 2020 (edited) Hello Everyone.just wondering How would i make my .lnk files escape using the Esc key? i mean because those are not set by an emulator. can anyone help me with this issue plz? Edited May 7, 2020 by Cnells2000 Quote Link to comment Share on other sites More sharing options...
MCF Posted May 7, 2020 Share Posted May 7, 2020 Use something like this, just change the red-colored portion of the AHK below to the executable of the game $Esc:: { Process, Close, whatever the game exe is } 1 Quote Link to comment Share on other sites More sharing options...
Cnells2000 Posted May 7, 2020 Author Share Posted May 7, 2020 in what section/tab do i paste that though? because the autokey section is in the emulator section which i dont have with a .lnk file Quote Link to comment Share on other sites More sharing options...
MCF Posted May 7, 2020 Share Posted May 7, 2020 My bad, forgot this was for PC games. Try these steps and let me know the outcome (I have not personally tested it) Download the Autohotkey package from https://www.autohotkey.com/download/, in the ZIP file is a Compiler folder. AHK2EXE is there. Convert the AHK script to an EXE and place it in the same folder where the PC game is. Add the EXE as an Additional App in Launchbox, and set it to Automatically Run Before Main Application. 1 Quote Link to comment Share on other sites More sharing options...
Cnells2000 Posted May 7, 2020 Author Share Posted May 7, 2020 1 minute ago, MCF said: My bad, forgot this was for PC games. Try these steps and let me know the outcome (I have not personally tested it) Download the Autohotkey package from https://www.autohotkey.com/download/, in the ZIP file is a Compiler folder. AHK2EXE is there. Convert the AHK script to an EXE and place it in the same folder where the PC game is. Add the EXE as an Additional App in Launchbox, and set it to Automatically Run Before Main Application. ok im going to try this now. i may still have questions but thank you for responding so far sir Quote Link to comment Share on other sites More sharing options...
Cnells2000 Posted May 7, 2020 Author Share Posted May 7, 2020 u said convert the AHK script. where would i get the ahk script? its asking me to place it in the directory Quote Link to comment Share on other sites More sharing options...
neil9000 Posted May 7, 2020 Share Posted May 7, 2020 I would never recommend killing native PC games like that. There is a reason PC and console games have warnings to not exit/shutdown your system when the save icon shows. Just killing it with alt F4 (which is what Launchbox will send as escape wont close most PC games) you risk corrupting your save games. Always close PC games through there in game exit menu's. Quote Link to comment Share on other sites More sharing options...
MCF Posted May 8, 2020 Share Posted May 8, 2020 (edited) On 5/7/2020 at 1:23 PM, Cnells2000 said: u said convert the AHK script. where would i get the ahk script? its asking me to place it in the directory This AHK script $Esc:: { Process, Close, whatever the game exe is } Just save the above as an AHK file, and then use the AHK2EXE tool to compile it. Note the red colored section of the script needs to be changed to the name of the game executable. However, @neil9000 is right, this is not the recommended way to exit from a PC game as the risk of corruption of your save games is high. Better to exit properly via the game's menus. Edited May 8, 2020 by MCF 1 Quote Link to comment Share on other sites More sharing options...
Cnells2000 Posted May 10, 2020 Author Share Posted May 10, 2020 (edited) On 5/8/2020 at 1:41 AM, MCF said: This AHK script $Esc:: { Process, Close, whatever the game exe is } Just save the above as an AHK file, and then use the AHK2EXE tool to compile it. Note the red colored section of the script needs to be changed to the name of the game executable. However, @neil9000 is right, this is not the recommended way to exit from a PC game as the risk of corruption of your save games is high. Better to exit properly via the game's menus. yes i understand that. what if the file is in a single launcher file like my wacky races and madden arcade dumps? they both have Launcher exes. i click launcher to start it, but i cant escape the emulator using the escape key. it isnt set by an emulator to run it. it only has a self launcher. where would i put the hotkey in this instance? which tab would i paste it in? folder, other, custom fields, because once again an emulator isnt set for this rom and several others similar games to this. (not my pc games .lnk's tho) Edited May 10, 2020 by Cnells2000 Quote Link to comment Share on other sites More sharing options...
Retro808 Posted May 10, 2020 Share Posted May 10, 2020 On 5/8/2020 at 1:41 AM, MCF said: This AHK script $Esc:: { Process, Close, whatever the game exe is } Just save the above as an AHK file, and then use the AHK2EXE tool to compile it. Note the red colored section of the script needs to be changed to the name of the game executable. However, @neil9000 is right, this is not the recommended way to exit from a PC game as the risk of corruption of your save games is high. Better to exit properly via the game's menus. I would also recommend getting away from using Process, Close when using AHK with games. It is a hard close process and can mess with emulators or other .exe that save on exit as well. This was identified a little over a year ago when a user had issues with Higan and that particular AHK script. WinClose, ahk_exe NAME OF.exe Would be safer to use. For example: $ESC::WinClose, ahk_exe higan.exe 3 hours ago, Cnells2000 said: yes i understand that. what if the file is in a single launcher file like my wacky races and madden arcade dumps? they both have Launcher exes. i click launcher to start it, but i cant escape the emulator using the escape key. it isnt set by an emulator to run it. it only has a self launcher. where would i put the hotkey in this instance? which tab would i paste it in? folder, other, custom fields, because once again an emulator isnt set for this rom and several others similar games to this. (not my pc games .lnk's tho) What Launcher are you using? Is it one downloaded with the torrent for that game? I have Wacky Races but I just run the game.exe. Quote Link to comment Share on other sites More sharing options...
Cnells2000 Posted May 10, 2020 Author Share Posted May 10, 2020 i dont use a launcher for the madden arcade or my wacky races and a few others. they just have their own separate exe. when i press escape for madden, nothing happens. when i press esc for wacky races the dipswitch settings pop up. i just want to easy close these specific type of games with escape like i do with the ones that have an emulator assigned. and where do i place that command line you have above? i dont have an emulator assigned so i cant paste that in the AHK section tab Quote Link to comment Share on other sites More sharing options...
Retro808 Posted May 10, 2020 Share Posted May 10, 2020 3 minutes ago, Cnells2000 said: i dont use a launcher for the madden arcade or my wacky races and a few others. they just have their own separate exe. when i press escape for madden, nothing happens. when i press esc for wacky races the dipswitch settings pop up. i just want to easy close these specific type of games with escape like i do with the ones that have an emulator assigned. and where do i place that command line you have above? i dont have an emulator assigned so i cant paste that in the AHK section tab You are using a launcher in Wacky Races. Your images show it. Launcher.exe is a launcher. That is what I was asking about. Did that launcher come in the download of the game files? When not using an emulator you will not have a place to paste an AHK script. You could compile an AHK and then add it as an additional app to run. Since "Escape" will not close it you would need to find out what will? Try Alt+F4 or Ctrl+Q. Once you find out what command will close the game we can go from there. Quote Link to comment Share on other sites More sharing options...
Cnells2000 Posted May 10, 2020 Author Share Posted May 10, 2020 (edited) i tried Alt and F4 and that worked. so i would like that to be the esc key instead. oh and this whole folder came together in the torrent. and i dont know diddly about compiling an ahk script yet. so where do i go from here? Edited May 10, 2020 by Cnells2000 Quote Link to comment Share on other sites More sharing options...
Retro808 Posted May 11, 2020 Share Posted May 11, 2020 Not at home right now. But an option could be to make a launcher that will both launch the game and have the AHK. Then when the game exits it stops both the game and AHK script. Quote Link to comment Share on other sites More sharing options...
Cnells2000 Posted May 11, 2020 Author Share Posted May 11, 2020 make a launcher? dont know where to begin with that. but @Retro808hopefully if ur not busy later and have time to help me whenever u get a chance, i would surely appreciate it sir. if i dont respond back today i will definitely follow up. thanks again retro Quote Link to comment Share on other sites More sharing options...
Retro808 Posted May 11, 2020 Share Posted May 11, 2020 5 minutes ago, Cnells2000 said: make a launcher? dont know where to begin with that. but @Retro808hopefully if ur not busy later and have time to help me whenever u get a chance, i would surely appreciate it sir. if i dont respond back today i will definitely follow up. thanks again retro Can you confirm you are wanting to use they keyboard key "Escape" to close correct? I am no expert on this, but have done something similar thanks to help from a couple of our resident AHK experts. I have something that should work, but can you confirm my question. Quote Link to comment Share on other sites More sharing options...
Cnells2000 Posted May 11, 2020 Author Share Posted May 11, 2020 yes sir thats correct ESC to escape Quote Link to comment Share on other sites More sharing options...
MCF Posted May 12, 2020 Share Posted May 12, 2020 On 5/11/2020 at 7:08 AM, Cnells2000 said: Can you go into the Xpadder Wacky Races folder and see if there's any EXE files in there? Use these steps to create an AHK script Launch Notepad Copy and paste the line below in Notepad and save it as "script.ahk" in a convenient location (i.e. Desktop, Documents), as suggested by @Retro808 $ESC::WinClose, ahk_exe your wacky races executable file Download the Autohotkey package from https://www.autohotkey.com/download/, in the ZIP file is a Compiler folder. AHK2EXE is there, this is the tool used to compile the AHK script into an EXE application The source script file is the script.ahk that was created in Step 2 above For the destination EXE file, name it as EXIT.EXE (or any other file name you like, so long as the extension is EXE) and place it in E:\Torrents\Wacky Races Click Convert Go to E:\Torrents\Wacky Races and check if EXIT.EXE has been created If yes, added EXIT.EXE as an Additional App for Wacky Races in Launchbox, and set it to Automatically Run Before Main Application Quote Link to comment Share on other sites More sharing options...
Retro808 Posted May 12, 2020 Share Posted May 12, 2020 He's already sorted. We just compiled a new launcher that launches the game and adds the AHK he needs all in one. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.