Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Anyone help me with a AHK script to close model emulator 2 with the esc key?  (Read 1863 times)

0 Members and 1 Guest are viewing this topic.

rdowdy95

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 609
  • Last login:July 29, 2011, 11:48:50 am
  • This is my rifle.
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. 

Congui

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 142
  • Last login:July 23, 2015, 12:54:53 pm
  • Newbie!
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.