Hi all,
I have a working Attract Mode / MAME arcade machine with
MAME Hiscore running on Windows 7.
This works great and when I exit MAME back to Attract Mode, the hiscore board changes are saved. However, if I shut the machine down with MAME running, the changes to the hiscore board are not saved, presumably the save function is triggered on MAME exit and when shutting down, this is bypassed and MAME is shutdown "ungracefully"
I want to (if possible) make it so that when I shutdown the PC from MAME, the scoreboard is saved. I thought maybe I could send an exit command to MAME on shutdown so I created a VBScript which sends an escape key command and used gpedit to run this on both shutdown and log off (the escape key should cauase MAME to exit and therefore saving the hiscore) but this has not worked (i assume it is being run after MAME has been closed by the shutdown)
The cabinet has a button that is wired to the power header of the motherboard and is used to startup / shutdown the PC.
Does anyone have any ideas of how I can do this, clearly at the moment, the workaround is always to escape to the menu before shutting down but would like to not have to remember to do this