|
Post by tailoredreaction on Oct 14, 2021 16:28:42 GMT
I am creating a JB program to launch movies. I want a specified movie to play using VLC with just one click of a button in JB. I have already successfully used the "run" command to open the VLC movie player.
Does anyone know how would I go about automatically playing a movie that is in a file on my computer?
|
|
|
Post by Rod on Oct 14, 2021 16:49:51 GMT
You should be able to add the file path and name to the command line.
So %vlc filepath/filename.ext
You may have to surround the whole command with quotes to stop Windows truncating the command at the space character if there is one in the file spec.
|
|
|
Post by tailoredreaction on Oct 14, 2021 17:13:45 GMT
I am assuming this is what you are refering to as the command line in my program
-- run "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --
where in that line would I add -- %vlc filepath/filename.ext -- ? (after the .exe? New quotes? )
Sorry, I really am that much of a novice.
Edit** I meant to add something I also tried.
I "associated" the movie file to open in VLC, then did a "run" on the file itself. It returned an "out of memory" error.
|
|
|
Post by tailoredreaction on Oct 14, 2021 18:02:00 GMT
I thank you for helping. I can't seem to get it to run and open a movie, yet.
this is the line in my program that launches the VLC player,
-- run "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --
I copied the movie I wanted to the same file that "vlc.exe" resides and this is now the path to the movie I want to play,
-- "C:\Program Files (x86)\VideoLAN\VLC\Brooklyn.mkv" --
What should the finished command line look like?
|
|
|
Post by Rod on Oct 14, 2021 18:37:24 GMT
run "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe ";chr$(34);"C:\Program Files (x86)\VideoLAN\VLC\Brooklyn.mkv";chr$(34)
note the space after vlc.exe
the spaces in the program files directory name cause windows to truncate the argument unless it is all wrapped in quote characters.
|
|
|
Post by tailoredreaction on Oct 14, 2021 20:01:05 GMT
Thank you so much Rod!! That solution worked the very first time for me and is exactly what I wanted.
|
|