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: does mala have a {no wait} command?  (Read 3459 times)

0 Members and 1 Guest are viewing this topic.

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
does mala have a {no wait} command?
« on: March 22, 2013, 05:20:45 pm »
hey guys,

i;m so close to getting mala all set p the way i had mamewah but i do have a few things i can't figure out.

one of the great things about wah's command lines is that it has a {no wait} command.  i use a little app called "pause" whih will pause emu's that have non standard pause keys and cant be reassigned. in wah, after calling "pause" in the pre-emu command line, i ended the command with {no wait}.  that tells wah to run the pre but immediately go to the next command, letting "pause" run in the background.

if i try adding "pause" to mala's pre command line, mala just hangs, letting me know it's running the pre-command.

so, long story short, anything like {no wait} for mala or will i need to resort to an AHK script?

thanks

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: does mala have a {no wait} command?
« Reply #1 on: March 22, 2013, 05:50:28 pm »
You could create a AHK script as the precommand file that Mala will run, in which a pause would be coded. See below for my example with Visual Pinball:
http://forum.arcadecontrols.com/index.php/topic,130016.msg1329961.html#msg1329961


Pre Command:
cmd /c start "" "C:\Arcade\Visual Pinball\VPControls.ahk"

Command line (same as always):
"%rom%.%ext%"


The command in Auto Hot Key for Pause is "Sleep". IE: Sleep 1000
This would create a pause for one second.

Does this help at all?
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

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
Re: does mala have a {no wait} command?
« Reply #2 on: March 22, 2013, 06:49:02 pm »
thanks for the reply wade.  i'll see if i can get a script going tonight.

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
Re: does mala have a {no wait} command?
« Reply #3 on: March 22, 2013, 10:49:46 pm »
You could create a AHK script as the precommand file that Mala will run, in which a pause would be coded. See below for my example with Visual Pinball:
http://forum.arcadecontrols.com/index.php/topic,130016.msg1329961.html#msg1329961


Pre Command:
cmd /c start "" "C:\Arcade\Visual Pinball\VPControls.ahk"

Command line (same as always):
"%rom%.%ext%"


The command in Auto Hot Key for Pause is "Sleep". IE: Sleep 1000
This would create a pause for one second.

Does this help at all?

so i pulled up the AHK exe that i was running with wah and put that in the pre-emu command line.  thing is, mala just says "pre command #1" and just sits there.  here is my script, should anyone be able to help.  basically, what it does is look for the window named "pSX".  i have the sleep command to wait so that when psx starts, AHK sends the key commands to send the emu to full screen

SetTitleMatchMode 2
winwait, psx,
IfWinNotActive, psx, , WinActive, psx,
WinWaitActive, psx,
Sleep 3000
Send, {ALTDOWN}{ENTER}{ALTUP}

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: does mala have a {no wait} command?
« Reply #4 on: March 24, 2013, 09:00:01 pm »
Your pre-command isn't coded right. I would suggest maybe not using this AHK script as the Pre-Command. Use it as the main call to launch the emulator. No pre-command. The AHK file will launch the emulator and/or the individual game within that emulator as the main executable. I don't know much about the PSX your trying to run but I had a similar issue with a VERY difficult Demul emulator. Had to create an AHK for each and every game. See here:
http://forum.arcadecontrols.com/index.php/topic,120273.msg1275200.html#msg1275200

...might be of some help.

Pre/Post commands can be tricky. Sometime Mala will hang and wait. Best to just let the Pre-command send the name of the game to the emulator, then launch the emulator within the main executable area.

Search this forum for more help with Pre/Post Command and/or how to launch your particular emulator with Mala.I found this one to be helpful which starts off addressing the epsxe emulator:
http://forum.arcadecontrols.com/index.php/topic,121399.msg1331182.html#msg1331182
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

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
Re: does mala have a {no wait} command?
« Reply #5 on: March 27, 2013, 05:19:56 pm »
thanks wade!  i followed the link and am using the "cmd /c start" along with the AHK that I had from before and it works beautifully now.  In addition to, I'm also running a second pre command with teh same "cmd /c start" to launch a pause app I have that allows me to pause all emu's with one standard key.  I use the taskkill command to close them all up when returning to mala and everything works a charm!

sincerely appreciate the help!

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: does mala have a {no wait} command?
« Reply #6 on: March 28, 2013, 04:00:42 pm »
Sure thing. Glad to be of help. I'm glad that you got it to work.  :applaud:
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