Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

Hey everyone.

I recently added a 2nd monitor to my rig, and I'm thinking of using Tempest's Marquee Magician to display some stuff on it. The problem is that I already use this to launch xpadder when GameEx starts. So what to do? I probably need a batch file to accomplish what I'm after, but admittedly I have no idea how to make one. My hope is that someone who knows what they're doing will swoop in and save the day?

Thanks!

Posted

If you know your way around a command line, you already know how to write a bat file (and judging from the amount of help you've given users, you're already a command line master).

  • Open Notepad
  • Paste in all the commands you'd like to run separated by a carriage return. Also, make sure that what you are pasting is plain text (Pasting from Word is notorious for 'special' characters). Sometimes it's safer to actually type out the commands by hand, as this error can be very tricky to debug (easy to fix, hard to see).
  • Save the file with a .bat (not .txt) extension

Now you can run your batch file from the command line using the following syntax:

"[Directory Path]\YourBatName.bat"

or if you want to get fancy:

start "" "[Directory Path]\YourBatName.bat"

You're off to the races now.

If you need to edit your bat file after having created it, don't double click it since that will run the file rather than opening it (I still always do this). Instead right click the file and select Edit

As you get more advanced in your abilities you may find yourself wanting a more advanced editing app. I highly recommend Notepad++ for this purpose.

Best of luck man!

Posted

Ahh thanks man!

I'll give it a go when I get home. :)

.:EDIT:. Wait, what's with all the echo stuff? Nevermind, I'll google it up. :D

Posted

I'm sure you've probably got everything worked out at this point, but in order to clarify, the echo command prints a specific piece of text to the command console. So if you write the command

echo Hello World

into your batch file,

Hello World

gets printed to the console window. The default behavior for batch files is to write all batch commands to the command console, or to put it another way, the default behavior of a batch file is to run with the following parameter set:

@echo on

Conversely the

@echo off

parameter will prevent the contents of the batch file from being written to the command window except where explicitly noted (via the echo command).

Posted

DAMMIT!

For some reason the .bat files I created are working great, until I go to the emulator. Then, not so much. So for NES, I have created a template for Marquee Magician, and I set up my bat file like so:

@echo off

F:
cd xpadder/
start "" xpadder.exe "nes1" "nes2" /M
cd ../MarqueeMagician
start "" LaunchMM.exe "NES"

The control panel screen comes up, and the Marquee Magician displays my template, but GameEx goes back to it's menu. I looked at the log file and it seems to be passing the CMDLine correctly. I'm completely stumped on this one.

.:EDIT:. Oh holy hell. I added it to "Also Launch" instead of "Launch Before" and it works like a champ. Go figure.

Posted

Thanks man! I appreciate the help. ;)

Guest
This topic is now closed to further replies.
×
×
  • Create New...