Shauku Posted September 24, 2019 Posted September 24, 2019 Hi guys, I have an old problem and a partly solution for it. I´m just missing a little part for totally smooth behavior. First --> I dont use Rocketlauncher. I´m just using Hyperspin, the emulator and maybe AutoHotkey for solving this. I have Kega Fusion 364 starting from HyperSpin and it works like a charm. Now i want to exit. My Exitcommand is pressing 1 & 2 (P1_Start and P2_Start) simultaniously (instead of the common exitEmulatorKey = Esc). After this, the emulator is closed, hyperspin is showing up and moving for 1 second, than its freezing and after ~10 seconds its reactivating and moving on. To make a faster reactivation i can click the left mousebutton and all is fine and moving. So it seems that the hyperspin "window" is not active for that time, even if its fullscreen. To get this changed exit to work, i added something in the Sega Genesis.ahk at Modules/Sega Genesis/ Quote #IfWinActive Fusion 1 & 2::WinClose Return This part is working and i can exit with my Button combination. Now i want to fix the ~10 seconds delay after the emulator close. I tried this one: Quote #IfWinActive Fusion 1 & 2::WinClose WinActivate, Hyperspin Click sleep, 200 ; 0,2 Sekunden warten Click Return It said --> If the "HyperSpin" window is active, click left mousebutton, wait 0,2 seconds than click left mousebutton again. This does not work. I guess its because the Sega Genesis.ahk is already closed after the emulator is closed, so nothing will happen. Can anyone confirm this? So do you have any tips where i can add the ahk code for this? Or maybe i should reactivate the HyperSpin window first and then close the emulator application? Any Tips?
Shauku Posted September 26, 2019 Author Posted September 26, 2019 I´ve done this with the following code for ZSNES: Quote #IfWinActive ZSNES 1 & 2:: SetKeyDelay, 10, 10 ;send {esc} Process, Close, zsnesw.exe return zsnes.cfg was set to: Quote KeyQuickExit=1 g;KeyQuickExit=1uioff=0 Sometimes rebooting the cab change something. So i just give this a try. Cheers guys.
Shauku Posted September 27, 2019 Author Posted September 27, 2019 Ok, it works smooth and like a charm. I use this snipped actually for ZSNES, VisualBoyAdvance and KEGA Fusion. Works for all: Quote Run, %Executable% "%romPath%%romName%%romExtension%", %EmuPath%, Process, WaitClose, %executable% ExitApp CloseProcess: return #IfWinActive ZSNES 1 & 2:: SetKeyDelay, 10, 10 Process, Close, zsnesw.exe return Just exchange the marked phrases: ZSNES & zsnesw.exe // VisualBoyAdvance & VisualBoyAdvance.exe // Fusion & Fusion.exe And exchange this parts in the Autohotkeyfiles in the Modules folder, for example: ...\Modules\Super Nintendo Entertainment System\Super Nintendo Entertainment System.ahk or ...\Modules\Nintendo Game Boy Advance\Nintendo Game Boy Advance.ahk (If the folder doesn´t exist, just make a new one... you will get, how to link it, I´m sure ) In HyperHQ you need to flag the Hyperlaunch option of course.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.