Jump to content
LaunchBox Community Forums

Andy911

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Andy911's Achievements

8-Bit Processor

8-Bit Processor (3/7)

1

Reputation

  1. Ok. Thanks for your help. I'll probably update anyway. In the latest updates, is there a way to pass the rom metadata (date of release, controls, etc...) upon launch? I have an xml file that I can parse from, but it sure would be simpler if I could get LB to just send it to my custom scripts.
  2. Data (not date). Batch File: @echo off REM Pass the first and second arguments (ROM filename and other parameter) to the Python script python "G:\My Drive\Projects\Projects\Arduino RasPi and Robotics\Python to Arduino Led Control\Test LB to PY pass filename.py" %1 %2 pause Py Script import sys def main(): # Capture the two parameters if len(sys.argv) > 1: rom_filename = sys.argv[1] second_param = sys.argv[2] print(f"ROM filename: {rom_filename}") print(f"Second parameter: {second_param}") else: print("No filename passed.") if __name__ == "__main__": main() input("Press Enter to close...") Output:
  3. Ok. The checkboxes are working for me. And to confuse matters more... you can put %romfilename% as the only parameter, and %1 will be "1942" (without quotes) regardless of the checkboxes. Note: %romfile% will still be added to the end of the parameters that are passed to the 'emulator' and can be captured in the batch file as %2. However, I tried %romfilename% as the only parameter. I tried capturing both parameters %1 and %2. It still does not substitute the date for %romfilename%.
  4. Wrapping my head around this one. I set up an "emulator", which actually runs my batch file with the python script. LB adds the full path to the rom as a parameter, even though I left the default command-line parameters blank. I tried using the other parameters, but LB still is not substituting the info. I need the filename, so my py script can look up info in an xml file. Although I can probably make this work by having my py script parse the filename from the full path, I feel like I'm missing something here. Shouldn't LB be substituting the info when %romfile% is in the command line parameters?
  5. I tried the ones you listed. No luck. Launchbox doesn't substitute as expected.
  6. I feel like this must have been discussed in the past, but I've been searching and cannot find an answer. Before a MAME Rom is launched, I want to run a python script. I need to pass the filename for the selected rom to the script. I cant figure out how to get Launchbox to pass the filename. I've created a Python script, and put it in a batch file. Using Additional Apps feature, I launch the batch file which successfully runs the py script. I've tried using variationsof %romlocation% in the cmd line parameters. It literally passes "%romlocation%" to the batch file, but does not substitute the filename as expected. I'd appreciate any help. Thanks.
  7. That points me in the right direction. Thank you.
  8. The Community Theme Creator. There are options for "Selected Item Audio", "User Defined Video", and "Video Mirror". I believe I want an option for "Selected Item Video", but it isn't on the list. I'm trying to have a the appropriate video snippet appear when a the game arrives on the wheel. This is my first theme, so I assume I'm missing something obvious. I've attached an image.
  9. I'm trying to create my own theme, however, there is no option to add a video for the selected rom. There is a "selected audio" option. Does anyone else have this problem, or am I missing something? Thanks for your help.
×
×
  • Create New...