DOS76 Posted November 19, 2019 Share Posted November 19, 2019 The only reason I suggested using Alt+F4 is that is the natural key press that the emulator uses and it closes it cleanly I don't no about with using winclose but with the end process command it wouldn't save any changes I made to the emulator when exiting. Quote Link to comment Share on other sites More sharing options...
tallpr24 Posted November 19, 2019 Share Posted November 19, 2019 i deleted everything and just put ESC:: Send !{f4} but i still cannot exit from gamepad Quote Link to comment Share on other sites More sharing options...
DOS76 Posted November 19, 2019 Share Posted November 19, 2019 did you set the key in the LB or BB controller settings? Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted November 19, 2019 Share Posted November 19, 2019 Putting in the code where it was suggested, if you hit Escape on the keyboard, does it close? Quote Link to comment Share on other sites More sharing options...
Retro808 Posted November 19, 2019 Share Posted November 19, 2019 Did you map your controller buttons for "Exit Game" in LB and "Close Active Window" BB? Quote Link to comment Share on other sites More sharing options...
tallpr24 Posted November 19, 2019 Share Posted November 19, 2019 yes, currently i have it set that when i hit select and start on my controller it exits out of the emulator, or retro arch. works good just not for demul. Quote Link to comment Share on other sites More sharing options...
Retro808 Posted November 19, 2019 Share Posted November 19, 2019 1 minute ago, tallpr24 said: yes, currently i have it set that when i hit select and start on my controller it exits out of the emulator, or retro arch. works good just not for demul. Use the code @DOS76 gave you and place it in the Running AHK. Delete the Alt+F4 code. Then test and make sure it works hitting the Escape key on your keyboard. Then try the controller. In Launchbox what # button does it say your Start and Select buttons are? $Esc:: { WinClose, ahk_exe demul.exe } Quote Link to comment Share on other sites More sharing options...
tallpr24 Posted November 19, 2019 Share Posted November 19, 2019 $Esc:: { WinClose, ahk_exe demul.exe } Quote Link to comment Share on other sites More sharing options...
tallpr24 Posted November 19, 2019 Share Posted November 19, 2019 this works with my escape key on keyboard, to answer your question about exiting , its set to button 7 and 8 at the same time $Esc:: { WinClose, ahk_exe demul.exe } Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted November 19, 2019 Share Posted November 19, 2019 @tallpr24 From your early posts (now that I've read them all), it sounds like closing the emulator was not an issue as you were able to hit Esc and it closed. The issue sounds to be with mapping your controller. If pressing Esc closes it, don't mess with that part any more. Look into the controller mapping. As stated, LaunchBox and BigBox have separate places where you need to map to them. Quote Link to comment Share on other sites More sharing options...
tallpr24 Posted November 19, 2019 Share Posted November 19, 2019 got it, but my escape from game pad works on all of my emulators including retro arch, dolphin, cemu, citra, just this one , it wont work work with demul Quote Link to comment Share on other sites More sharing options...
tallpr24 Posted November 19, 2019 Share Posted November 19, 2019 (edited) Edited November 19, 2019 by tallpr24 Quote Link to comment Share on other sites More sharing options...
tallpr24 Posted November 19, 2019 Share Posted November 19, 2019 Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted November 19, 2019 Share Posted November 19, 2019 I've never used demul and am not familiar with it. It just seems odd that Esc from the keyboard works but not via the controller. Just looking, RA and Dolphin don't need scripts to close. Look for a setting or command line parameter for demul for exiting with Esc. That's all I can think of. Quote Link to comment Share on other sites More sharing options...
DOS76 Posted November 19, 2019 Share Posted November 19, 2019 I just set it up as I hadn't had the AHK in there before and it worked for me no issues. Quote Link to comment Share on other sites More sharing options...
DOS76 Posted November 19, 2019 Share Posted November 19, 2019 Using the winclose script. Quote Link to comment Share on other sites More sharing options...
tallpr24 Posted November 19, 2019 Share Posted November 19, 2019 wonder if its because im using an older version of demul Quote Link to comment Share on other sites More sharing options...
tallpr24 Posted November 19, 2019 Share Posted November 19, 2019 this version i have seems to be the only one that works with the rom set i have Quote Link to comment Share on other sites More sharing options...
DOS76 Posted November 19, 2019 Share Posted November 19, 2019 yeah I have the most recent version of Demul and I'm using the files from my current MAME set Quote Link to comment Share on other sites More sharing options...
jayjay Posted November 19, 2019 Share Posted November 19, 2019 (edited) If you start up demul outside launchbox does escape exit demul? Go to Launchbox/autohotkey directory, right click on autohotkey.exe, compatibility, run as admin. Change ur running autohotkey script to Joy7:: { WinGetActiveTitle, WindowTitle WinGet, PName, ProcessName, %WindowTitle% Process, Close, %PName% } Start a game in LB, press button 7 (select on 360 controller) If you have multiple controllers, press button 7 on all controllers Does demul close? If not, is demul in full screen, if yes and it has the option of windowed mode. Set it to windowed mode and try again. If not, not sure there's much else u can do. Edited November 19, 2019 by jayjay 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.