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: Closemul Question  (Read 3877 times)

0 Members and 1 Guest are viewing this topic.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Today at 07:23:49 am
  • ...
Closemul Question
« on: July 27, 2010, 09:55:30 pm »
Still fumbling my way through adding Makaron games to my main MAME list.
I think all the kinks are worked out now with the exception of closing.
I'm using closemul and it does work....

But, as closemul is closing Makaron, a Direct X error message flashes and I get the annoying windows critical error "doing".
It's only there for a second, then I'm back in my main menu ready to select another game.
(I've already done the latest direct x update because Makaron required it to run)

I get the same error message when I close out of Makaron using Alt+F4 without pressing F8 to exit the game first.
So I think closemul is closing the emulator completely before the game has a chance to exit.

Is there a way to configure closemul so that when I press the escape key to exit, it sends F8, pauses for a second, then sends Alt+F4?

I disabled the annoying windows noise, so it isn't as big of an issue as it was, but I'd still like to fix the window if possible.

Here is my current closemul.ini file:
Code: [Select]
Closemul v0.3
Contact: lustar[at]free[dot]fr

------------------------------------------------------------------------------------------------------------

---------------
- Exit Key 1: (ASCII key code). The key that will be used to Exit the Program. Defaults to ESC

(27).
- Exit Key 2: (ASCII key code). A second key to form an ExitKey1+ExitKey2 combination to Exit the

Program.
- Extract: ("unzip" for zip, 7z, tar, or "unrar" for rar). Extract File, then run it with the

Program.
- Extracted Ext 1: (without the dot, as in "cue"). In case there are several files in the archive.
- Extracted Ext 2: (without the dot, as in "cue"). In case the archive could contain another file

format.
- Pre Command: ("bat"/"exe" or path\executable.ext). Program to execute before launching the File.
- Post Command: (executable.ext or path\executable.ext). Program to execute when the main Program is

closed.
- Mount Program: (daemon tools full path). Mount The File to a virtual drive before launching the

Program.
- Mount Device: (virtual drive device number). Needed by the mount setting. Usually 0.
- Mount Parameters: (put quotes around the whole line, not around each parameter). If you need daemon

settings.
- Registry File: (name.reg). Enforce settings from .reg before the File is launched.
- Automation: (Keyword or Window Title). To activate automated loading. Needed by the Automation

Steps setting.
- Automation Steps: (comma separated list, using WAIT/ASCII/F1-F12/ENTER/SPACE/SHIFT+/CTRL+/ALT+/WIN+).
- Automation Delay: (milliseconds, Defaults to 100). Time to Wait between each Automation Commands.
- Program: The Program that is going to be run then closed using the Exit Key(s).
- Program 2: This program will not be launched, but will replace the Program to be closed using

the Exit Key(s).
- Param Before File: If the Program needs extra command line parameters Before the File name.
- Param After File: If the Program needs extra command line parameters After the File name.
- File: A File to be run by the Program.
- Snap 1 Search: (Search String). Search a File containing this string.
- Snap 2 Search: (Search String). Search a File containing this string.
- Snap Extension: (File Extension). The file format of the snapshots.
- Snap Source Folder: (Path). Source Folder of the snapshots.
- Snap 1 Dest Folder: (Path). Destination Folder for the first snapshot.
- Snap 2 Dest Folder: (Path). Destination Folder for the second snapshot.
- Quit Management: (0:Off 1:On(Default) 2:orESC 3:=ESC 4:CloseOnly 5:MethodB 6:MethodB+orESC

7:MethodB+=ESC).
- Quit TimeOut: (Defaults to 200. 0: Always Force) Gently Close Program -> TimeOut -> Forcefully

Close Program.
- Disable Quotes: (0|blank: Use Quotes / 1: Disable quotes). Some emulators do not expect quotes.
------------------------------------------------------------------------------------------------------------

---------------
[Parameters]
Exit Key 1= 27
Exit Key 2= ALT+F4
Extract=
Extracted Ext 1=
Extracted Ext 2=
Pre Command=
Post Command=
Mount Program=
Mount Device=
Mount Parameters=
Registry File=500
Automation=
Automation Steps=
Automation Delay=
Program=
Program 2=
Param Before File=
Param After File=
File=
Snap 1 Search=
Snap 2 Search=
Snap Extension=
Snap Source Folder=
Snap 1 Dest Folder=
Snap 2 Dest Folder=
Quit Management=
Quit TimeOut=
Disable Quotes=

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:July 20, 2025, 05:12:51 am
    • My personal forum
Re: Closemul Question
« Reply #1 on: July 28, 2010, 03:36:20 am »
I'm not a expert but i think that closeemul can not do that! However, have you considered the option of using AutoHotkey?
I think that it can be your best option!
I'm a newbie using AutoHotkey but I could help you!

Greetings

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:July 20, 2025, 05:12:51 am
    • My personal forum
Re: Closemul Question
« Reply #2 on: July 28, 2010, 09:59:08 am »
Please, download this exe and tell me if it works for you.

This program waits until ESC is pressed to send a F8,it waits one second and then sends Alt+F4.

Try and tell me.

Greetings