Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: rdowdy95 on August 25, 2010, 02:53:38 pm

Title: Anyone help me with a AHK script to close model emulator 2 with the esc key?
Post by: rdowdy95 on August 25, 2010, 02:53:38 pm
It has been awhile.  Built my own cab about 2/3 years ago and recently I found HOTD works really well with this model emulator 2 or model 2 emulator.  I am only interested in HOTD so the way I would make this game work is the way I do my other HOTD games.  I just have/will be doing a desktop shortcut to open up the emulator.exe hotd and it will open the game up fine.  I even have it set in the emulator to run the game at full screen.

Problem is...I hit esc and it exits full screen but keeps the emulator running in a boxed window.  Could anyone help me make a script to run this emulator.exe hotd but have it where when I press ESC it would do an ALT-F4 command at the end after the window goes small?

I have AHK on my system, but it has been a long while since I did any scripts.  Actually come to think of it my HOTD2 and HOTD3 scripts for those two PC games were designed by folks on here I think.

Please help...Thanks...

Man one of these days when Mame gets to 0.20 I may rebuild a better system maybe quadcore and play me some Gauntlet Dark Legacy.  Man that will be the day.  I have .110 Mame on my setup, and it would be a hassle to update all of those roms.  I cringe at even thinking about it.  LOL!  Anyways any AHK help will be great. 
Title: Re: Anyone help me with a AHK script to close model emulator 2 with the esc key?
Post by: Congui on August 25, 2010, 03:53:27 pm
Hi there.

How about something like this:
------------------------------------------
RunWait, c:\games\HOTD2.exe, c:\games
ExitApp

esc::send !{F4}
------------------------------------------

It will run HODT2.exe in the c:\games diretory, while mapping the esc key to !{F4}, which is alt+F4.

Hope this helps.

Cheers,
Congui.