Ok you need to do a few things to get started.
Delete any settings you have in mamewah relating to the lcd. If mamewah manages to execute any commands its keeps hold of the com port until you quit mamewah, which means no other commands can be sent.
What we are going to do is get mamewah to run a bat instead of the mame.exe
This is my mame.ini, setup your in a similar fashion.......... Notice how it points to the batch file
### mame.ini (mamewah v1.61) ###
emulator_title M.A.M.E.
### List Generation Settings ###
rom_path d:\roms
rom_extension zip
dat_file c:\mame\mame.dat
nms_file c:\mame\what.ini
catver_ini_file c:\mame\catver.ini
list_generation_method rom_folder_vs_listxml
### Execution Settings ###
emulator_executable c:\mameWAH\batchfiles\mame.bat
commandline_format [name]{nodosbox}{nosafelaunch}
alt_commandline_format_1 [name]{autodosbox}{nosafelaunch}
alt_commandline_format_2 [name]{autodosbox}{nosafelaunch}
Now create the batch file for mamewah to run.
This is my mame.bat
@echo off
copy c:\LCD_GAME_CONTROLS\%1.lcd com1
cd\
cd mame
start/wait mame.exe d:\roms\%1
copy c:\LCD_EMU_CONTROLS\mame.lcd com1
So in :\LCD_GAME_CONTROLS\ I have all my .lcd files created by lcdgen (this gets copied when you launch a game)
in c:\LCD_EMU_CONTROLS\ I one .lcd file per emulator, in this case mame.lcd
In this .lcd you put whatever you want the lcd to display when you are back in the mamewah menu.
So what should happen is when you launch a game, the correct game controls get displayed on the screen, then when you exit mame, it displays what ever you have put in your mame.lcd file.
Only trouble is that when you 1st start mamewah, the lcd will be blank, so what I did is drop a .lcd file in my startup folder
Let me know if you run into any probs