TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Switch Spotify devices with Alexa and Smartthings

    Scheduled Pinned Locked Moved Instructions
    1 Posts 1 Posters 2.4k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      Nate Hales
      last edited by Nate Hales

      I made a video https://youtu.be/8BVC2dnnxFQ
      Smartthings switch between Spotify devices. it is a .vbs file I made in notepad. Works like a champ. You can change the amount of times it hits the TAB button (to select different devices) by changing the 3 in "{TAB 3}". I have made multiple identical scripts with the only change being this number. I made multiple Triggercmd switches that I trigger with Alexa through Smartthings. "Alexa turn on device 3"

      Spotify Devices in your device list will change position when devices are turned on and off. Even though your computer will always be in position 1 it still requires "{TAB 2}" in the script. It goes up from 2 to how many ever devices you have.

      Open notepad and copy and paste the following and save it as a .vbs

      Set WshShell = WScript.CreateObject("WScript.Shell")
      Comandline = ":\UsersYOUR COMPUTER NAME\AppData\Roaming\Spotify\Spotify.exe"
      CreateObject("WScript.Shell").Run("spotify:")
      WScript.sleep 1000
      WshShell.SendKeys "^{d}"
      WScript.sleep 1000
      WshShell.SendKeys "{TAB 3}", True
      WScript.sleep 1000
      WshShell.SendKeys " "

      I will post a video of this sooner or later. 🙂

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post