Alrighty, I'm going to run through compiling mame0124 with hi score and no nag + autohotkey acceptance. I'll make the disclaimer that all this is correct to the best of my knowledge, but it's always possible that I've made a mistake. If there are any problems, I'll try to help. Also, I may state stuff that seems obvious. I do this because this kind of thing requires following instructions to the letter, so I want to make this as clear as I can to anyone reading it.
OK, here we go!
1. Go here
http://mamedev.org/tools/previous-20070810.html and download mingw-mame-20070810.exe. Double click it, and the file will self-extract. Extract it to C:\mingw. On the same page, there is a download link for dx80 mgw.zip. Download that, and extract it to a temporary folder. In that folder, find the following files:
d3d8.h
d3d8caps.h
d3d8types.h
ddraw.h
dinput.h
dsound.h
and copy them to your C:\mingw\include directory.
2. Go here
http://mamedev.org/oldrel.html and download mame0124s.zip. Extract the file inside it, mame.zip, to wherever you like. Then extract mame.zip to C:\mamesrc.
3. Go here
http://forum.arcadecontrols.com/index.php?topic=64298.0 and download the 124 hi score no nag patch. Change the file extension from txt to diff and place it in C:\mamesrc.
4. Now here's the part where we fix it so autohotkey will work again. Navigate your way to C:\mamesrc\src\osd\windows\. Open the file input.c. If you double-click it, it should just open in notepad, if not, open it with notepad. Now, find the following text:
// initialize RawInput and DirectInput (RawInput first so we can fall back)
rawinput_init(machine);
dinput_init(machine);
win32_init(machine);
and change it to this:
// initialize RawInput and DirectInput (DirectInput first so we can fall back)
dinput_init(machine);
rawinput_init(machine);
win32_init(machine);
Close the file and save your changes. We're basically just making mame revert to its old input system. I'm not sure if there are any negative side effects to this - I've never seen any, but this info is provided without warranty of any kind.
5. Download the file I've attached to this post. This is simply the older version of the compile extras that are no longer available on Mr. Do's page. If you don't want to download this, you can search out how to compile with a diff file manually, but this will be much easier.
6. Extract the contents of compile_extras.zip to C:\mamesrc.
7. Go to C:\mamesrc and double click the command prompt shortcut. Type the following at the prompt:
patchmame hi_124
This puts in the hi score no nag patch.
8. We're ready to compile! At the command prompt, type this:
makemame
And now we wait. You'll see a bunch of code scrolling. Actually, this could take awhile. On my slowish computer, it takes over an hour. But when it finishes, you'll have a nice mame.exe (along with the other files you normally get with mame) in the C:\mamesrc folder with no nagging, hi score, and ready to take sent keypresses again!
One final note: It still won't work to send keypresses in the normal way. You have to do something different. Instead of typing
send {esc}
in your script as you normally would, you'll need to type
send {Blind} {esc downtemp}
send {Blind} {esc up}
That should work. Try it out!
I haven't looked into hotkeys involving holding down a key for a set amount of time. But you could probably figure it out, and I'm sure someone on the autohotkey forum could tell you in 2 seconds anyway.
Let me know how this works out! I'll try to help anyone with any issues.