Nicely done ultrez for a beginner coder.
Just one small tip. You don't need to use the Else conditional if you don't really need to use it for anything. The If would be enough.
Also, RocketLauncher have some built-in functions for things like the run command that helps you logging what you are doing and handle any error that could come up from not setting correctly your path and so on. You could use it instead of the normal AHK run command line.
Therefore I would use something like this instead:
Code:
; Use this function to define any code you want to run in every module on start
StartGlobalUserFeatures(){
Log("StartGlobalUserFeatures - Starting")
Global systemName
If ( systemName = "MAME" ){
Run("remap.bat", "C:\Arcade\ControllerRemap", "Hide")
}
Log("StartGlobalUserFeatures - Ending")
}
By the way, I don't know how your bat file should work, but if you want it to be entirely executed before RL actually runs the game, you should use "RunWait" instead of the "Run" command.