Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Batch file or AHK script to play video full screen?  (Read 3647 times)

0 Members and 1 Guest are viewing this topic.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:April 22, 2024, 09:54:06 am
  • ...
Batch file or AHK script to play video full screen?
« 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.

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: Batch file or AHK script to play video full screen?
« Reply #1 on: December 02, 2012, 12:10:21 am »
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:

Code: [Select]
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

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19400
  • Last login:April 21, 2024, 11:59:54 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Batch file or AHK script to play video full screen?
« Reply #2 on: December 04, 2012, 10:25:35 am »
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. ;)