mentazm Posted January 21, 2020 Share Posted January 21, 2020 In launchbox options I have controller mapped so when I press select+start the game/emu exits back to launchbox. I audited my build yesterday and found that several emus/systems simply refuse to acknowledge this... Teknoparrot (arcade) WinUAE (amiga) Hatari (atari st) Pinball arcade (PFX3 works fine) My other 50+ systems respond to it fine. Can someone let me know the AHK script I need so when I press start+select on joystick/gamepad these systems exit? Cheers in advance. Quote Link to comment Share on other sites More sharing options...
Retro808 Posted January 21, 2020 Share Posted January 21, 2020 Best place to ask about AHK is typically here. Below is a code, though you will need to know what button #'s start and select are on your controller. If you already assigned those buttons in BigBox you should be able to look there and see what # there. So you will need to replace 11 and 12 with your specific numbers. Joy11:: If GetKeyState("Joy12") { SetKeyDelay, -1, 110 WinClose, ahk_exe {{{StartupEXE}}} } Return Quote Link to comment Share on other sites More sharing options...
mentazm Posted January 21, 2020 Author Share Posted January 21, 2020 Thank you, much appreciated! Quote Link to comment Share on other sites More sharing options...
hyp36rmax Posted September 7, 2022 Share Posted September 7, 2022 On 1/21/2020 at 3:40 AM, mentazm said: Thank you, much appreciated! Did this work? Have a similar issue Game Exist combo exits game, BUT an EXIT dialog comes up. Quote Link to comment Share on other sites More sharing options...
Your Friendly A.I Overlord Posted September 7, 2022 Share Posted September 7, 2022 (edited) 15 minutes ago, hyp36rmax said: Have a similar issue Game Exist combo exits game, BUT an EXIT dialog comes up. Almost always you can disable this in the emulator itself. In the emulators' settings look for a checkbox or setting named something like "Confirm Exit". Edited September 7, 2022 by Your Friendly A.I Overlord Quote Link to comment Share on other sites More sharing options...
hyp36rmax Posted September 7, 2022 Share Posted September 7, 2022 25 minutes ago, Your Friendly A.I Overlord said: Almost always you can disable this in the emulator itself. In the emulators' settings look for a checkbox or setting named something like "Confirm Exit". Thanks for your response. In my case it’s actually a Steam game with an Exit Dialog. I’ve setup BigBox Exit hotkey that works for all the other games. When executed on this game it triggers an exit dialog to confirm. Quote Link to comment Share on other sites More sharing options...
Your Friendly A.I Overlord Posted September 7, 2022 Share Posted September 7, 2022 2 minutes ago, hyp36rmax said: In my case it’s actually a Steam game with an Exit Dialog. I’ve setup BigBox Exit hotkey that works for all the other games. I would advice against closing Steam games with an exit script. You don't know what a games does upon closing, like writing to it's config- or save files. Force closing PC games might corrupt those. Most Steam / PC games can be closed via it's menu, even with a controller. 7 minutes ago, hyp36rmax said: When executed on this game it triggers an exit dialog to confirm. There might be a setting anyway, somewhere in it's config / .ini files. Quote Link to comment Share on other sites More sharing options...
hyp36rmax Posted September 7, 2022 Share Posted September 7, 2022 14 minutes ago, Your Friendly A.I Overlord said: I would advice against closing Steam games with an exit script. You don't know what a games does upon closing, like writing to it's config- or save files. Force closing PC games might corrupt those. Most Steam / PC games can be closed via it's menu, even with a controller. There might be a setting anyway, somewhere in it's config / .ini files. I’m not too worried about that issue with this game. Steam games we typically exit properly. Quote Link to comment Share on other sites More sharing options...
Your Friendly A.I Overlord Posted September 7, 2022 Share Posted September 7, 2022 Well, if you scoured the menu settings and config files for options to disable "Confirm on Exit", beside force closing your game, you could write a script to click O.K. for you. Quote Link to comment Share on other sites More sharing options...
hyp36rmax Posted September 7, 2022 Share Posted September 7, 2022 4 hours ago, Your Friendly A.I Overlord said: Well, if you scoured the menu settings and config files for options to disable "Confirm on Exit", beside force closing your game, you could write a script to click O.K. for you. That's where i'm stuck. I've tried ESC that triggers exit dialog and pressing enter to "OK" BUT... Enter is also the same key that triggers full screen. No way to redefine that function in the menu. Game is "Infinos Gaiden" Quote Link to comment Share on other sites More sharing options...
Your Friendly A.I Overlord Posted September 7, 2022 Share Posted September 7, 2022 (edited) I have to say, seeing as I don't own this game and it seems a bit obscure, it is pretty difficult making a script without knowing anything about this game. How did you add it to LaunchBox? Via a Steam url or an executable? You say you tried to close the game with escape, but have you also tried to close it with Alt + F4? 1 hour ago, hyp36rmax said: I've tried ESC that triggers exit dialog and pressing enter to "OK" BUT... Enter is also the same key that triggers full screen. Sometimes those dialog boxes also accept Space as confirmation. Edited September 7, 2022 by Your Friendly A.I Overlord Quote Link to comment Share on other sites More sharing options...
hyp36rmax Posted September 7, 2022 Share Posted September 7, 2022 54 minutes ago, Your Friendly A.I Overlord said: I have to say, seeing as I don't own this game and it seems a bit obscure, it is pretty difficult making a script without knowing anything about this game. How did you add it to LaunchBox? Via a Steam url or an executable? You say you tried to close the game with escape, but have you also tried to close it with Alt + F4? Sometimes those dialog boxes also accept Space as confirmation. Understood. ESC and ALT+F4 triggers Confirmation Exit with window title "information". In Big Box Mode I can trigger the same Confirmation Exit with a designated Button Press. Space can confirm "OK" button. What i'm really looking for is the ability for an AHK script to detect Confirmaiton Exit Window and press "OK". Quote Link to comment Share on other sites More sharing options...
Your Friendly A.I Overlord Posted September 7, 2022 Share Posted September 7, 2022 (edited) 15 minutes ago, hyp36rmax said: In Big Box Mode I can trigger the same Confirmation Exit with a designated Button Press. That's because when you press the "exit button", LaunchBox / BigBox sends an Escape. 1 hour ago, Your Friendly A.I Overlord said: How did you add it to LaunchBox? Via a Steam url or an executable? Can you answer this for me? Do you know the name of the games' executable? Edited September 7, 2022 by Your Friendly A.I Overlord Quote Link to comment Share on other sites More sharing options...
Your Friendly A.I Overlord Posted September 7, 2022 Share Posted September 7, 2022 12 minutes ago, hyp36rmax said: ESC and ALT+F4 triggers Confirmation Exit with window title "information". Ah, that's a start. WinWait, information Sleep 500 SendInput {Space} 1 Quote Link to comment Share on other sites More sharing options...
hyp36rmax Posted September 7, 2022 Share Posted September 7, 2022 7 minutes ago, Your Friendly A.I Overlord said: That's because when you press the "exit button", LaunchBox / BigBox sends an Escape. That to difficult for me to do without having the game myself. Can you answer this for me? Do you know the name of the games' executable? I added the game via Launchbox Steam Importer 4 minutes ago, Your Friendly A.I Overlord said: Ah, that's a start. WinWait, information Sleep 500 SendInput {Space} This worked!!!! ❤️ Thank you!!!! 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.