Trying to figure this out I did a lot of research and found something called Display, which is a small application that lets you control the orentation of your screen through the command line. Since MFME takes command line arguments, I made a .bat file to automatically open a specified ROM.
@echo off
REM Create a temporary file to indicate script completion
echo > close.tmp
REM Start command prompt windows for display commands
start cmd.exe /k "C:\Display\display64.exe -device 1 -rotate 90 /toggle" ^& timeout /t 1 > nul
REM Run the MFME executable
"C:\MFME\v20\MFME.exe" "E:\Fruit Machine\ROMS\Some MFME ROM\Some_MFME_ROM_(Brand)_[Dx02_15jp].gam"
REM Start command prompt windows for display commands
start cmd.exe /k "C:\Display\display64.exe -device 1 -rotate 90 /toggle" ^& timeout /t 1 > nul
REM Wait for MFME to finish and then delete the temporary file
timeout /t 1 > nul
del close.tmp
REM Check if the temporary file exists; if not, close all windows
if not exist close.tmp (
taskkill /f /im cmd.exe
)
exit
For this code to work you need to change where the files are located to where you have them on your PC. You also need to setup MFME like this: File/Preferences/Load Mode = Full Screen Max Stretch, after you do that just run the .bat file and it should rotate your display, and then run the game. After you exit the game it will rotate your display back and then automatically close all of the CMD windows.