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: How to close a Batch file driven Daphne in Mala [SOLVED]  (Read 6422 times)

0 Members and 1 Guest are viewing this topic.

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
How to close a Batch file driven Daphne in Mala [SOLVED]
« on: May 11, 2012, 01:13:57 am »
I have Daphne working fine within MALA using batch files.

How can I set it up so that I can close Daphne without clicking ESC on my keyboard?

Ideally, I'd like to set up a one or two button combo to escape (I'm using an X-arcade tankstick for a controller) that is NOT the escape key. How to do this?

I tried to set this up in Hotkeys. It didn't work. It seems to ignore Hotkeys in Mala. No affect.

I suppose I could do it using Auto Hot Key which would launch the batch file and set up the 2-key combo to escape. Is there an easier way?

Thanks.
« Last Edit: May 12, 2012, 10:47:01 pm by Wade007 »
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: How to close a Batch file driven Daphne in Mala
« Reply #1 on: May 11, 2012, 02:17:40 pm »
Daphne exiting game on escape is set by Daphne, not mala.  Can't remember enough daphne to remember if that can be changed in daphne.  Yes, autohotkey can do what you want to do.  use autohotkey to send ESC when you press your two desired keys/tankstick buttons. 

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:June 22, 2025, 10:00:52 am
    • My personal forum
Re: How to close a Batch file driven Daphne in Mala
« Reply #2 on: May 12, 2012, 08:58:29 am »
I think you could test my AllInOne's program.
It's in my sign!

Greetings!

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: How to close a Batch file driven Daphne in Mala [SOLVED]
« Reply #3 on: May 12, 2012, 12:17:09 pm »
Thanks for your responses guys. I'll give it a go.

Empardopo, I'm studying the PDF instructions on how to use AllInOne. Thank you for the suggestion.
I think I understand how to set up the .ini file to work, however I do not understand how to call the program into use through MALA. How do I open AllInOne through MALA before launching a game? How do I get it to run with any particular emulator with MALA?  ??? Is a batch file the only way to connect Mala with AllInOne?

I tried launching it within the same batch file that launches a Daphne game. It doesn't really work in MALA. Mala launches both applications (AllInOne and Daphne) but it looses focus on the Daphne game and I'm dumped to Windows. Not good. How to fix?

Also when I open AllInOne my computer tried to open MSPaint briefly. Why does it to this?
I'm using Windows 7 64 bit.

Thanks.


[EDIT] OK, I figured out why it kept starting MSPaint. there's a separate section called "[Launch Process]" that has a default setting of "mspaint.exe". Took that out. Frustrating default coding. I think this was causing my loss of focus as well within MALA. The Daphne game would launch, then MSPaint, MSPaint would then quit (per the default coding settings) and then I'd be left in Windows.  :angry:


[EDIT AGAIN...hours later] After having spent even more time with this program, and reading the instructions PDF in Spanish (Entiendí las instrucíones mejor en español. ¿Al lo mejor te podría ayudar, Empardopo, en hacer una mejor traduccíon de las instruciones en íngles?) I think I figured it out.

For others looking to use AllInOne to solve my same issue, this is what I would suggest:
The advantage of using Empardoro's AllInOne is that you can use one program and one file (AllinOne.ini) to control the quitting out of Daphne and ALL the Daphne games as well as multiple emulators. Auto Hot Key can be set up to do this as well but you'd have to create a separate script file for each and every game and again for each and every emulator. With Daphne (for me anyway) perhaps it's about the same either way since I've had to alter each of the original launch batch files (one per Daphne game anyway) to include a call to AllInOne. Another nice thing is that AllInOne is set to quit itself after executing the functions it was set up to run. In other words, it won't keep running in the background after remapping your "Quit Emulator" keys and/or launching your applications, etc. It doesn't keep using computer resources that should be dedicated to your emulator after doing what it needs to do.

If you only want to remap ONE key to quit Daphne, that can be done in Daphne itself. I needed AllInOne or AutoHotKey in order to map two key simultaneously as the "quit emulator" function.

The example code of a Galaxy Ranger BAT file to launch AllInOne and be used with Mala would be:

@echo off
Start D:\Utilities\AllInOne185be\AllInOne185be.exe
Start C:\Arcade\Daphne\Daphne.exe galaxy vldp -framefile C:\Arcade\Daphne\framefile\galaxyranger_frames.txt -fullscreen -x 1024 -y 768

I edited the above code down some on the third line by taking out much of the miscellaneous command line info I passed onto Daphne.exe. Use whatever command info you want in the third and forth line area. But the basic code structure is still there.

Now...in AllInOne you need to set up the following (non-code comments are in parathesis) in AllInOne.ini:
[KillProccesses]
KillProcessesActivate=YES
KeyToKill1=2 (this is to map the #2 key as my second combo key. My goal was to be able to press #2 and #4 simultaneously in order to close Daphne and jump back to MALA seamlessly)
KeytoKill2=4 (this is to map the #4 key as my second combo key)
ProcessToKill1=daphne.exe

(now jump down to "LaunchProcess")

[LaunchProcess]
EnableLaunchPrecess=  (I left this empty since I don't want it to launch any other programs)
ProcessToLaunch= (delete "mspaint.exe". The default setting launches this program. Annoying)

(now jump down to "Focus")

[Focus]
EnableFocus=YES (not sure if this part is vital but I wanted to keep the focus on Daphne.exe instead of Windows or MALA while a game was running)
ProcessToBringInFocus=daphne.exe (I added daphne.exe here. Again, it may not be needed but this worked for me as an extra precaution. ,<Goes away to re-test> I've tested it both ways. Not necessary. I think the focus issue I had was with the "mspaint.exe" additional launch)

(all other script defaults kept as is except for a few timing tweaks)


« Last Edit: May 12, 2012, 10:41:36 pm by Wade007 »
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:June 22, 2025, 10:00:52 am
    • My personal forum
Re: How to close a Batch file driven Daphne in Mala [SOLVED]
« Reply #4 on: May 13, 2012, 02:08:23 pm »
WOW,a good article!
I think now you haven't doubts.  :laugh2:

The Focus section was designed to solve the Mala's problem with the focus!

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: How to close a Batch file driven Daphne in Mala [SOLVED]
« Reply #5 on: May 13, 2012, 04:16:47 pm »
Thank you Empardopo.

Is there any other way to use AllInOne other than a batch file in Mala?

Can it be launched through pre-commands? The only way I see to launch it by using a batch file. Any other ideas Empardopo?

ESPANOL:
¿Hay una otra manera de lanzar AllInOne en Mala sin un .Bat programa? ¿Como se utiliza AllInOne aparte de un batch file en Mala?
Gracias.
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:June 22, 2025, 10:00:52 am
    • My personal forum
Re: How to close a Batch file driven Daphne in Mala [SOLVED]
« Reply #6 on: May 13, 2012, 05:56:55 pm »
I'm sorry but I don't understand you!

Please, tell me What do you want to do exactly?

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: How to close a Batch file driven Daphne in Mala [SOLVED]
« Reply #7 on: May 13, 2012, 07:22:19 pm »
Empardopo,
Thank you for your response.

What is the easiest way to launch the AllInOne program from within Mala? In other words, How does Mala usually open the AllInOne program directly?

Right now I am using a batch file for each and every game. Mala opens the batch file. Each batch file launches both AllInOne and the emulator with the chosen game. This works just fine but I was wondering if there was a more efficient way to launch AllInOne by itself without making it part of the batch file that also opens the game. Does that make sense?

For example, the Sega Model 2 emulator does not need to use batch files in order for Mala to launch the games for that emulator. I can just direct Mala to open the Rom and the emulator directly. Similiar to MAME. How do I add AllInOne to these emulators when they are launched through Mala in the normal manner?

I'd like to add the functionality of AllInOne to the Sega Model 2 emulator but I don't want to have to code 60 or more batch files to open each and every Sega Model 2 Rom to include AllInOne. Can't I just open AllInOne ONLY ONCE through Mala somehow and keep the original Sega Model 2 settings of Mala? Is there a more efficient way to open AllInOne through Mala without having to create a new batch file for each game?

Espero que me este explicando bien. Disculpa mi español: Gracias por tu programa y por tu paciencia conmigo. Solo estoy tratando a averiquar si hay una manera de lanzar (o empezar) AllInOne mientras uno esta adentro MALA sin crear "batch files" para cada juego que uno tenga. ¿Sabes que es un "batch file"? Estoy usando "batch files" con Daphne para lanzar las programas AllInOne y tambien el emulator y juego eligido juntos. Quisiera saber si podría lanzar AllInOne solamente una vez para todos los juegos de un emulator como "Sega Model 2" para que no tenga que hacer programitas (batch files) para cada juego individualmente.  :)
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:June 22, 2025, 10:00:52 am
    • My personal forum
Re: How to close a Batch file driven Daphne in Mala [SOLVED]
« Reply #8 on: May 14, 2012, 02:16:44 pm »
I hope to be right! I think that you can use a only batch file.

That is possible if all games use the same keys! You can run your batch file to run MALA.

Only it's necesary to code a diferent bath file for each game if each game use different keys! In another case with you can use an only batch file!

I'm sorry for my bad english.I'm trying to improve it! And thanks for using my program!

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: How to close a Batch file driven Daphne in Mala [SOLVED]
« Reply #9 on: May 14, 2012, 07:16:21 pm »
Gracias por tu respuesta Empardopo. Seguiré adelante con lo que dijiste.
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:June 22, 2025, 10:00:52 am
    • My personal forum
Re: How to close a Batch file driven Daphne in Mala [SOLVED]
« Reply #10 on: May 16, 2012, 01:38:37 pm »
It is a pleasure to help you.

Es un placer intentar ayudarte!  :applaud: