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: MaLa question - launch external app on game start/exit?  (Read 8408 times)

0 Members and 1 Guest are viewing this topic.

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
MaLa question - launch external app on game start/exit?
« on: January 06, 2007, 03:01:45 pm »
Hi,
Does anyone know if it's possible to launch an external app from MaLa when a mame game starts and then again when it exits (without coding a custom plugin)? I see that MaLa does have an option to launch a cp viewer when a games starts and I guess that could be used for any app - for example to set the DSR mode for a GPWiz49. But what about on game exit?
Robots will kill you.



Arcade Addiction

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: MaLa question - launch external app on game start/exit?
« Reply #1 on: January 06, 2007, 04:02:46 pm »
Hi,
Does anyone know if it's possible to launch an external app from MaLa when a mame game starts and then again when it exits (without coding a custom plugin)? I see that MaLa does have an option to launch a cp viewer when a games starts and I guess that could be used for any app - for example to set the DSR mode for a GPWiz49. But what about on game exit?

Yes (you have the right idea but use the encoder launcher) and yes (I think that where the default encoder conig Mala is used).
Options/controller/encoder  ;)


Let me know what you need and I'm sure a plug-in can be whiped up in any case. Fatfingers has already written a plugin for the Ultrastick in C++ so I'm sure he could give us some tips  ;D

Enjoy
« Last Edit: January 06, 2007, 04:13:21 pm by loadman »

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Re: MaLa question - launch external app on game start/exit?
« Reply #2 on: January 06, 2007, 04:58:16 pm »
loadman,
I just downloaded Delphi 7 personal - I think I'll give the plugin coding a try myself. Might as well learn if I'm going to use MaLa!
Robots will kill you.



Arcade Addiction

fatfingers

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 966
  • Last login:April 17, 2025, 05:26:08 pm
  • Got UltraStiks?™
Re: MaLa question - launch external app on game start/exit?
« Reply #3 on: January 06, 2007, 05:07:13 pm »

It sounds like you guys have everything under control, but if I can be of any assistance, please let me know.

My DK low scores
-------------------
1) 180700
2) 165000
3) 162900
4) 162600
5) 158500


W.W.P.M.D.?                                       I'm here to help ... I just don't do it. ™

edge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 370
  • Last login:May 08, 2025, 09:08:47 am
  • AttractMode and GroovyArcade rock!
Re: MaLa question - launch external app on game start/exit?
« Reply #4 on: January 06, 2007, 06:05:19 pm »
loadman,
I just downloaded Delphi 7 personal - I think I'll give the plugin coding a try myself. Might as well learn if I'm going to use MaLa!

Arzoo,
You should also try Turbo Delphi.  I like the interface much better.  And it is also free.
http://www.turboexplorer.com/delphi

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Re: MaLa question - launch external app on game start/exit?
« Reply #5 on: January 06, 2007, 07:40:19 pm »
loadman,
I just downloaded Delphi 7 personal - I think I'll give the plugin coding a try myself. Might as well learn if I'm going to use MaLa!

Arzoo,
You should also try Turbo Delphi.  I like the interface much better.  And it is also free.
http://www.turboexplorer.com/delphi


Actually, I've got Delphi 7 and 2005. Do you think turbo is better than 2005? Will any of them work with the MaLa plugin interface?
Robots will kill you.



Arcade Addiction

edge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 370
  • Last login:May 08, 2025, 09:08:47 am
  • AttractMode and GroovyArcade rock!
Re: MaLa question - launch external app on game start/exit?
« Reply #6 on: January 06, 2007, 11:17:35 pm »
They should all work.  I haven't tried 2005, but I think thats newer than the turbo version.

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: MaLa question - launch external app on game start/exit?
« Reply #7 on: January 07, 2007, 04:35:57 am »
loadman,
I just downloaded Delphi 7 personal - I think I'll give the plugin coding a try myself. Might as well learn if I'm going to use MaLa!

Cool.  I use D7 personal and it works for me. I don't think the Plug-in is too fusy what version you use as it only needs to recognise the external calls.

Eg
On game Start  ..
On Mala Start
On Screen Saver Start

Etc

I'm sure you could make one in VB (but there is no template for that yet)

As long as you are having fun

[EDIT] Now I have been using D7 for a while I may try TurboD and see what I think.. I will let you know
« Last Edit: January 07, 2007, 05:00:21 am by loadman »

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Re: MaLa question - launch external app on game start/exit?
« Reply #8 on: January 07, 2007, 08:39:45 am »
They should all work.  I haven't tried 2005, but I think thats newer than the turbo version.
I've been doing some reading on Delphi and I think Turbo is newer than 2005.

http://delphi.about.com/cs/azindex/a/dhistory_3.htm
« Last Edit: January 07, 2007, 08:42:31 am by arzoo »
Robots will kill you.



Arcade Addiction

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: MaLa question - launch external app on game start/exit?
« Reply #9 on: January 26, 2007, 05:18:49 pm »
I decided to stay with D7

Had troubles downloading turbo :dunno

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: MaLa question - launch external app on game start/exit?
« Reply #10 on: February 03, 2007, 03:47:04 am »
I decided to stay with D7

Had troubles downloading turbo :dunno

Later...

Am now using Turbo Delphi 2006!

How did I live without this?  :dunno This is Gold!   :notworthy:

1) It appears Delphi 7 had a bug that caused me to look for a apparent prob with the Led-Wiz code that I now discover was never there AHHH! It works fine now  ;)
2) It spoon feeds you tips and highlights potential coding problems to you on the fly

I LIKE IT SIR...  Yes I DO   ;D

millercentral

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:March 07, 2024, 04:38:47 pm
  • I want to build my own arcade controls!
Re: MaLa question - launch external app on game start/exit?
« Reply #11 on: February 03, 2007, 08:45:53 pm »
Any Luck? Mala happily sets my 49ways to 2-way horizontal for Moon Patrol before it launches (thanks to calling Set49Way with the %rom% parameter), but when I quit and return to Mala the stick is still in 2-way horizontal mode, making it hard to scroll the game list in Mala... :)

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: MaLa question - launch external app on game start/exit?
« Reply #12 on: February 03, 2007, 09:58:43 pm »
Any Luck? Mala happily sets my 49ways to 2-way horizontal for Moon Patrol before it launches (thanks to calling Set49Way with the %rom% parameter), but when I quit and return to Mala the stick is still in 2-way horizontal mode, making it hard to scroll the game list in Mala... :)

Sorry are you suing a plug-in?
or if now how are you sending the command?

There is an encoder section in MaLa that was made for encoder keyboard encoders on game launch to diffrent configs but can just as easily be used to launch and set joystick configs as it's just command line based

If you send the command using the controller/encoder tab you can set a default config that can be loaded for MaLa use (default config)

millercentral

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:March 07, 2024, 04:38:47 pm
  • I want to build my own arcade controls!
Re: MaLa question - launch external app on game start/exit?
« Reply #13 on: February 04, 2007, 02:39:56 pm »
Yep, thats what I'm using and it works great for launching a game, but it doesn't "reset" the joystick back to 8-way after the game exits...

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: MaLa question - launch external app on game start/exit?
« Reply #14 on: February 04, 2007, 04:44:14 pm »
Yep, thats what I'm using and it works great for launching a game, but it doesn't "reset" the joystick back to 8-way after the game exits...

Can you post a screenshot of that encoder mala tab?

millercentral

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:March 07, 2024, 04:38:47 pm
  • I want to build my own arcade controls!
Re: MaLa question - launch external app on game start/exit?
« Reply #15 on: February 08, 2007, 11:43:11 pm »
Here you go (attached)...

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: MaLa question - launch external app on game start/exit?
« Reply #16 on: February 09, 2007, 12:09:45 am »
As I suspected you have not set a default config (mala) that MaLa loads after you quit a game..

Try that  ;)