@SGT:
I'am using a german cab called "Quadro Games". The manufactorer is a german company called "Quadro Games Automatenbau oHG", this cabs are later licensed by Konami. The special thing of this cab is that you can use four JAMMA-games (PCBs) at once and the monitor (Hantarx mtc9000) is turable. Outside the cab on the control panel is a switch to select the game. You can choose the orientation of each game installed on one of four seperate PCBs with a simple "on-off" switch inside the cab, on is horizontal, off is vertical. If you choose one of the four games with the game-select-switch on the CP, the monitor will turn automaticaly to the appointed orientation. When I use MAME I have to set the on-off switch by Hand when I want to play a game with another orientation. Sadly this switch is badly gettable because it is deep inside the cap. So I allways have to open the frontdoor and to fummble in the dark cab ;-).
I could simply bring this switch to the outside of the cab but cause I'am using MaLa I get the idear of turnig the monitor automaticaly even when I use MAME.
@loadman
Thanks for your tips again, this tool (MaLa Stub) is a big easement!
I'am using Delphi5 as said and it works fine so far. To access the COM port I will use a freeware DLL which usese the WinAPI functions.
The lot should be working as follows:
Each time I select a game in MaLA the orientation will be written and given to the elektronic by setting a pin on the COM-port high or low witch stands for a orientation (for example high is horizontal, low is vertical). When I start the game this orientation will be given to another pin witch will be set high for a secound. This will set power to the coil of a "on coil latching relay". This relay will replace the on-off switch on the pcb in the cab. I chose this relay because it will "remeber" the orientation when the cab power is turning of. On the netxt turn on MaLa starts with the last selected Game and the orientation should fit.
The next weekend I'll finish the program and make the electronic circuit. Next comes the testing. If everything goes well I make a detailed description.