Rog Cod
04-27-2009, 08:39 AM
I am trying to do something I thought would be simple, not.
I would like to send AMS7 a command line argument to open a video, like: C:>videoplayer 1video.wmv
Open a window and play the video from the path sent from command line.
code:
address= _CommandLineArgs[1]; -- Is this correct?
Dialog.Message("Notice", address); -- test
File.Run("autorun.exe", "Page1|"..address, "", SW_SHOWNORMAL, false); -- open a pop- up player window and play the video in venerable in address.
This crates a loop opening the program and I must KILL it.
I am asking for help to just open a video from a command line args like the path and name of the file. Ex "C:\testvideos\1video.wmv" and send that to the video player window. I do not like to use Windows Media Player and need to have my own design with logo on the frame of the player window. I need a custom player that works with the command like, anyone have an idea on how to do this?
I would like to send AMS7 a command line argument to open a video, like: C:>videoplayer 1video.wmv
Open a window and play the video from the path sent from command line.
code:
address= _CommandLineArgs[1]; -- Is this correct?
Dialog.Message("Notice", address); -- test
File.Run("autorun.exe", "Page1|"..address, "", SW_SHOWNORMAL, false); -- open a pop- up player window and play the video in venerable in address.
This crates a loop opening the program and I must KILL it.
I am asking for help to just open a video from a command line args like the path and name of the file. Ex "C:\testvideos\1video.wmv" and send that to the video player window. I do not like to use Windows Media Player and need to have my own design with logo on the frame of the player window. I need a custom player that works with the command like, anyone have an idea on how to do this?