Jump to content
LaunchBox Community Forums
Freddy

Emulator Exit AHK Script not running

Recommended Posts

 

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

 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites
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".image.png.1381f7e2e6b4092b26ad0ef8e1d48973.png 

The only issue with that is you'll need to add that in for every game.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...