theMK2k / MetropolisLauncher

A data-heavy Emulation & Gaming front-end for Windows
http://metropolis-launcher.net
Other
40 stars 3 forks source link

Add option to execute commands before launching a game, and upon closing of a game #12

Closed lmills87 closed 5 years ago

lmills87 commented 6 years ago

D-Fend Reloaded allows the user to execute commands before the game launches and after the game is closed. This can be useful for opening/closing a midi synth (such as Falcosoft Midi Player, for example), so that the synth only runs while the game is being played.

In the example image below, I have told DFR to execute mt32.exe when the game is launched and to execute kill.exe when the game is closed (although the suffixes are not necessary). These exe files are autohotkey scripts which launch Falcosoft Midi Player and then close it (upon termination of the game), respectively.

When executing a command before the main program, DFR allows the user to "wait before execution of the main program" so that DFR will hold off on launching the game until the command is fully executed. This is a useful feature to ensure that a midi synth is fully initialized before a game launches, although it could be further improved by allowing the user to specify an additional delay (in milliseconds) if more delay is needed.

Observe the other options that DFR allows the user (such as running the commands minimized and in order). This would be a helpful addition to MK2k.

catsimt

theMK2k commented 6 years ago

Understood. Do you happen to know what "not working if using data files as commands" means? What are data files in this case?

theMK2k commented 6 years ago

Pre-Launch and Post-Launch commands are now supported.

Please download https://www.metropolis-launcher.net/beta-releases/metropolis_launcher_1.2.0b3-mk2k.zip and test. The feature is available in the Emulator Settings (https://documentation.metropolis-launcher.net/emulator_settings.htm) as a new tab called "Pre- and Post-Launch Commands".

BoneofMalkav commented 6 years ago

Tried the Daggerfall paramiters in both Pre and Post Launch Commands sections, no change.

On Tue, Jul 3, 2018 at 3:44 AM, MK2k notifications@github.com wrote:

Pre-Launch and Post-Launch commands are now supported.

Please download https://www.metropolis-launcher.net/beta-releases/ metropolis_launcher_1.2.0b3-mk2k.zip and test. The feature is available in the Emulator Settings (https://documentation.metropolis-launcher.net/ emulator_settings.htm) as a new tab called "Pre- and Post-Launch Commands".

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/theMK2k/MetropolisLauncher/issues/12#issuecomment-402044287, or mute the thread https://github.com/notifications/unsubscribe-auth/AQlOUYqQtq2QYCXjw-5GifPfpxkVNdalks5uCyDggaJpZM4PECnm .

theMK2k commented 6 years ago

Hi @BoneofMalkav, thanks for stepping in. Please provide more details.

What do you mean by "no change"? What exactly did you put into the Pre- and Post-Launch Commands? (Screenshots of the Launch Command Editor could be helpful)?