Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

Hi all,

since the MAME volume control buttons do not seem to work on my installation, I decided to map global Windows volume controls to control panel buttons with AutoHotKey, such as

X::Send {Volume_Up 3}
Y::Send {Volume_Down 3}

All works fine using MAME stand-alone.

However, when starting the AHK script with the "Run on launch" item in the Advance MAME settings like

"C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Emulators\MameUI32\_keymappings\mame.ahk"

1. the CPWizard panel is shown

2. the AHK script is started

and that's it. MAME does not start.

Hint: Had the same problem using AHK scripts with emulators until I tried the "Also launch" item which works perfectly.

Is there an "also launch" rather than the "run on launch" with MAME also? Is there a workaround?

(I am using the current GameEx version 12.98)

Thanks in advance!

Posted

AHK scripts that have hotkeys are persistent, that is they continue to run until the user closes it or exitapp is encountered.

When you use the Run on Launch, GameEx waits until the launched program closes before continuing. In this case since your script never ends GameEx never launches the emulator. I would just write a second script which runs the first one, and then exits. In the Launch After use Taskkill /f /im "Name of First Script" or possibly Tskill /f /im "Name of First Script" depending on your OS.

  • Like 1
Posted

Oh.... now that was easy :-)

I figured the part with the persistent script, but never would have guessed the solution with the second script... my my [scratching head].

You guys are great.

Thank you!!

Guest
This topic is now closed to further replies.
×
×
  • Create New...