If anyone wants to give it a try, here's a perl script that will change the current list in the config file specified. Save the stuff between the #####.### below into a file called changelist.pl, then for example to change to list 3 in emulator2, do:
perl changlist.pl emu2.cfg 3
Perl is not installed by Windows, so you'll have to install it if you don't have it. This was tested with cygwin under XP Pro (well I only tested that the script does what I want, I actually haven't tested that mamewah will change list properly because at the moment I have only one list in mamewah and I don't have timeto try multiple lists right now)
#######################################################
#!perl
# papaSchtroumpf, 2003
#
if ($#ARGV != 1)
{
print STDERR "usage: perl changelist.pl <emuXX.cfg> <list#>\n";
print STDERR "changes the current list entry in file emuXX.cfg to the number specified\n";
print STDERR "for example perl changelist.pl emu1.cfg 3\n";
exit 1;
}
# copy the file to change to a temp file
rename "$ARGV[0x00]", "MWtemp123";
#copy every line except the "List Selected" line
open (INPUT, "MWtemp123");
open (OUTPUT, ">$ARGV[0x00]");
while(<INPUT>)
{
if (/List Selected =/)
{