How to load an Ipac button configuration before and after emulator starts?

Get answers to questions about using mGalaxy.
Post Reply
User avatar
geansv
Newbie
Newbie
Posts: 1
Joined: Thu Jul 24, 2014 2:11 pm
Location: Melbourne, Victoria AUSTRALIA

Hi everyone.
I have a homemade cab with several emulators, and I have made batch files that run an IPAC button configuration before the emulator starts, and then a 'back to default' button configuration after I quit the emulator.
My question is:  How do I do the same thing in Mgalaxy?

Sorry if this is very obvious, but I have only just discovered Mgalaxy, and I very much like the simplistic look and feel of it.

I have never used frontends before really, just my shortcuts to my homemade batch files.

Cheers and thanks in advance if anyone can help.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

Do you know autoit script ?

mGalaxy can search a script called mGalaxy_Script.exe and load it instead of the executable. So for an application that don't need script try something like that.

Code: Select all

;Parsing
Local $count = StringInStr($CmdLineRaw, ".exe", 0, 1, 1)
local $app = StringLeft ( $CmdLineRaw, $count + 4 )
local $command = StringTrimLeft( $CmdLineRaw, $count + 4 )
if not $command then exit 0
 
RunWait(@ComSpec & " /C " & "start.bat", "", @SW_HIDE)
 
Runwait ( '"' & $app & '" ' & $command )

RunWait(@ComSpec & " /C " & "End.bat", "", @SW_HIDE)
 
Exit 0
This code wait for application (in bat file) finish so IDK what is your bat file but perhaps "Run" will be better.
Post Reply