Open and close VLC Player
Tim S last edited by Tim S
I use the android app VLC Remote by Hobbyist Software in the PlayStore to control my VLC Player on my HTPC from my phone and PlayStore compatible chromebook. With this, now I just say "movie time" and "movies over" to my Google Home to open/close VLC. This is super nice with my solid black background running on my HTPC for when I've fallen asleep on the couch watching something and only the VLC Player being open onscreen is the only bright light in the living room to simply say "movies over" and have my TV go dark.
Start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
taskkill /im vlc.exe
And it's awesome that Russ's "Autohotkey script for Play, Pause, Volume Up/Down, Next/Previous" works with VLC Player as well as WMP so I can say "wait" and "continue" to my Google Home to play/pause on these players.
EDIT: Sorry I should have added this a long time ago. Slipped my mind
And of course if you have your videos or songs all in a specific folder somewhere I have this batch file to say "Hey Google, Play TV Que" or "Movie Que" and VLC auto opens, loads all the media in the folder, and begins random play.
Start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -LZ "V:\Enter_Folder\Path\to\PLAY"
Of course your folder path will most likely not be "V" but "C" though I have a 8tb NAS with it's video storage mapped as "V" drive on my PC.
I have also assign voice commands "full screen" and "aspect ratio" to get vlc how I want it hands free when I open it like this. For that I used AutoHotkey_1.1.26.01_setup that basically send keystrokes that I have customed VLC to respond to.
@Tim-S, that is awesome. I like how you're using the Google Assistant shortcuts for "movies over"..
I wish Alexa had shortcuts like Google Assistant has. That feature does a lot for TRIGGERcmd.
Alexa has routines, but they're only for Smart Home stuff, so to use them with TRIGGERcmd you have to use the SmartThings integration.
Thanks for posting this.
Hi! as a newbie I have no idea how to do what you've said, is there any chance you could help me do this but with Emby instead of vlc please?
@daniel-o-Sullivan, I assume you mean you don't know how to setup Emby Theatre to open or close on your Windows computer when you run a command with parameter on or off?
If so, here's how I did it.
- I made a batch file called EmbyTheatre.bat in my tools folder with these contents:
if "%1"=="on" %USERPROFILE%\AppData\Roaming\Emby-Theater\system\Emby.Theater.exe if "%1"=="" %USERPROFILE%\AppData\Roaming\Emby-Theater\system\Emby.Theater.exe if "%1"=="off" taskkill /im emby.theater.exe /f /t
I added a command in the GUI editor like this:
I tested running Emby Theatre locally with the green play button.
I tested running opening and closing Emby Theatre from the www.triggercmd.com website with the orange Parameters button like this:
Thanks, alot buddy, it launches fine apart from when I did it through my google home it asked me to wait and nothing happened? I presume it's because I've not yet subscribed?
@daniel-o-Sullivan, no it should work fine if you're not subscribed. Please tell me more - like what exactly did Google Home say back to you? Also did you already link your account in the Home app?
@russ Ignore that it's because I had to wait for a minute to pass, to be able to trigger another command
@daniel-o-sullivan, ok, that's the limiter I put in the code to encourage you to subscribe.