0

I state that I'm not a developer but I try to find solutions to manage small problems at home.

I'm trying to use a script found on the net to perform some automated operations with SPOTIFY.

I have about ten sandbox sessions that need to set a few different tunes.

The original script is this:

Set WshShell = WScript.CreateObject("WScript.Shell")
Commandline = ***"%MYPATH%**\\Spotify.exe"
WScript.sleep 5000
CreateObject("WScript.Shell").Run("%MY_URI%*\*")
WScript.sleep 3000
WshShell.SendKeys "{ENTER}"
WScript.sleep 1000
WshShell.SendKeys "^{s}"
WScript.sleep 100
WshShell.SendKeys "^{RIGHT}"

I would like to create 2 variables

%PATH% and %URI% that can be read from a CSV composed as follows
1;"\\path";"xxxxx"
2;"\\path";"xxxxx"

Surely you have a simple idea to help me.

I've used fixed path and URI but I must create many VBS files for all sandbox session

Set WshShell = WScript.CreateObject("WScript.Shell")
Comandline = ":\\Users\\xxxxxx\\AppData\\Roaming\\Spotify\\Spotify.exe"
WScript.sleep 5000
CreateObject("WScript.Shell").Run("spotify:user:xxxxxx:playlist:xxxxxx")
Hovercraft Full Of Eels
  • 283,665
  • 25
  • 256
  • 373

0 Answers0