Freddy Posted June 25, 2019 Share Posted June 25, 2019 I just can't figure out how this works. using mame emulator the running AHK script works fine. but during mame game, i press escape to exit ....and it exits, kills mame, as expected.....but the "exit AHK script" doesn't seem to run. Does it work for other people ? Any idea what I might be doing wrong ? Freddy Quote Link to comment Share on other sites More sharing options...
neil9000 Posted June 25, 2019 Share Posted June 25, 2019 3 minutes ago, Freddy said: I just can't figure out how this works. using mame emulator the running AHK script works fine. but during mame game, i press escape to exit ....and it exits, kills mame, as expected.....but the "exit AHK script" doesn't seem to run. Does it work for other people ? Any idea what I might be doing wrong ? Freddy You do not need a script for MAME, you can just set a button combo in the MAME UI itself. You want to go to the tab menu/input general and set a combo for "UICancel" and that will exit MAME when the combo is used. Quote Link to comment Share on other sites More sharing options...
neil9000 Posted June 25, 2019 Share Posted June 25, 2019 Actually i think its "input UI" not general. Quote Link to comment Share on other sites More sharing options...
Freddy Posted June 25, 2019 Author Share Posted June 25, 2019 Thanks for reply. Yep, I got that I don't need it to map keys.......But I'm just trying to figure out how "Exit AHK scipt" works from within an emulator. Any emulator? I'm thinking about using it reset window's mouse sensitivity back to normal after I run an emulator. But can't get it to run after mame and game exits. Any ideas? Freddy Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted June 25, 2019 Share Posted June 25, 2019 2 hours ago, Freddy said: how "Exit AHK scipt" works from within an emulator. The "Exit AutoHotkey script" is used to send whatever key presses are necessary to close the specific emulator. It redirects the Esc key to do this. Since Mame (and many other eum's) already uses the Esc for this, it's not required to add this in. For something like PCSX2, Esc doesn't close it. You need to close the emu, i.e. Alt+F4, or possibly a little cleaner, shutdown or Close the process. Process, Close, {{{StartupEXE}}} To reset your mouse sensitivity after exiting a game, you'll need to add that code/batch file to the games "Additional Apps" and select it to "Automatically Run After Main Application". The only issue with that is you'll need to add that in for every game. 1 Quote Link to comment Share on other sites More sharing options...
Freddy Posted June 25, 2019 Author Share Posted June 25, 2019 Ok, I get it now. Thanks, guys freddy 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.