Open and close VLC Player



  • 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.

    To open

    Start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"

    To close

    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.


  • administrators

    @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?


  • administrators

    @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:
      Emby Theatre

    • 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:
      TRIGGERcmd Parameters



  • @russ said in Open and close VLC Player:

    EmbyTheatre

    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?


  • administrators

    @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


  • administrators

    @daniel-o-sullivan, ok, that's the limiter I put in the code to encourage you to subscribe. :)


Log in to reply
 

Looks like your connection to TRIGGERcmd Forum was lost, please wait while we try to reconnect.