Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: BadMouth on December 01, 2012, 08:58:45 pm
-
Is it possible to have a batch file or AHK script play a video full screen without any frames or dialogue boxes popping up?
I have a startup video in Mala, but to get some of the Taito Type X games to work, I had to write a script to exit Mala, launch the game, then relaunch Mala on game exit.
I don't want the video playing every time Mala starts, only the first time.
So I either need to play the video with a different program when windows starts, or I need to modify that one line of the Mala.ini file when it's launched from the TaitoTypeX scripts. I don't want to just swap in an entire .ini file because it doesn't keep up with changes or take me back to the same list position Mala was left in.
-
There is a pure ahk solution to this, but I don't recommend it because it will likely require you to hunt down and install a codec and even then it's a bit hacky.
I would just figure out how to run the video fullscreen from the command line in your favorite media player. So your script would be something along these lines:
run C:\Program Files\mymediaplayer.exe C:\Videos\myvideo.avi -fullscreen
sleep 20000 ;length of the video
WinClose, name of media player window
run C:\Program Files\Mala\mala.exe
-
Media Player Classic to the rescue again!
MPC gives you the option to start a video fullscreen, it also gives you the option to close the player upon a video's completion. It even has command line options to that effect as well. Other than the looks, I'm honestly not sure why anyone uses any video player other than MPC at this point. ;)