SumiForum
    • Categories
    • Recent
    • Tags
    • Popular
    • Games
      • MFME
      • Virtual Pinball
    • Register
    • Login

    How to automatically rotate display for MFME?

    Scheduled Pinned Locked Moved MFME
    mfme
    1 Posts 1 Posters 141 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SumisuS Offline
      Sumisu Administrator
      last edited by Sumisu

      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.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Forum Stats

      0

      Online

      3

      Users

      30

      Topics

      30

      Posts

      Ad

      © 2024 Sumisu

      • Home
      • Categories
      • Popular