Switch Spotify devices with Alexa and Smartthings

Опубликовано: 02 Ноябрь 2024
на канале: Bubbas Reviews
2,257
16

SHOUT OUT TO MIKE NORTH for inspiring this idea
More Spotify and Smartthings on my othe video
   • START SPOTIFY PLAYLIST WITH SMARTTHIN...  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 = ":\Users\YOUR 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 " "

Instructions and script on the web: https://www.triggercmd.com/forum/topi...