The NEW Build Your Own Arcade Controls

Front End Support => MaLa Frontend => Topic started by: tony.silveira on March 22, 2013, 05:20:45 pm

Title: does mala have a {no wait} command?
Post by: tony.silveira 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
Title: Re: does mala have a {no wait} command?
Post by: Wade007 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 (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?
Title: Re: does mala have a {no wait} command?
Post by: tony.silveira on March 22, 2013, 06:49:02 pm
thanks for the reply wade.  i'll see if i can get a script going tonight.
Title: Re: does mala have a {no wait} command?
Post by: tony.silveira 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 (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}
Title: Re: does mala have a {no wait} command?
Post by: Wade007 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 (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 (http://forum.arcadecontrols.com/index.php/topic,121399.msg1331182.html#msg1331182)
Title: Re: does mala have a {no wait} command?
Post by: tony.silveira 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!
Title: Re: does mala have a {no wait} command?
Post by: Wade007 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: