Author Topic: Mame Roms not launching via .Bat file  (Read 19639 times)

makaveeti

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Mame Roms not launching via .Bat file
« Reply #30 on: June 21, 2017, 08:14:56 PM »
dustind900 - that works perfectly. I didn't think it was possible to automate the running of exe files without pressing the programmed hotkey first.

This is brilliant :) Thanks very much man.

I have a question about translating a vbs script I created to alt+enter upon the launch of a windows game. Perhaps you can help me translate it into an AHK script. I'll PM you the details.

thatgammon

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Mame Roms not launching via .Bat file
« Reply #31 on: July 07, 2020, 12:08:17 PM »
To all,

Similar problem.... Calling mame from a batch works perfectly..

mame64.exe %1

What I would like to do is use %1 for other purposes.
So I am assuming that %1 is the whole path/filename/extension for the rom
Just calling echo %1 is not doing anything. (trying to show what the whole variable is)

I would like to set another variable (%2) to the whole path/filename (no extension ( .zip) )

so i can use it to call .wavs/.avis etc

If %1 is not the whole file/path etc how can I add %ITEM_NAME% to the bat also?

Apologies if this is slightly off topic for this thread, thanks in advance.