Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
When I log in to my laptop (or unlock after a break), I want Spotify to automatically play - but only if it was running before I closed my laptop - and I don't like it starting halfway through a song, so I want it to always start a new track on my playlist.
I figured it out and just got it working with a VBScript and the Task Scheduler... and I thought I'd share my solution. 🙂
(If you're not used to messin' with stuff like this, see Stack Overflow or ask your local neighborhood nerd.)
Open Notepad and paste in the following code:
Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\.\root\cimv2") Set colProcessList = objWMIService.ExecQuery _ ("Select Name from Win32_Process WHERE Name='Spotify.exe'") If colProcessList.count>0 then Set WshShell = WScript.CreateObject("WScript.Shell") Comandline = "C:\Users\**YOUR PROFILE NAME**\AppData\Roaming\Spotify\Spotify.exe" WScript.sleep 500 CreateObject("WScript.Shell").Run("spotify:user:johnsmith:playlist:0rDhbjtAgoLssBmFPaBDpN") WScript.sleep 2000 WshShell.SendKeys "^{RIGHT}" Set WshShell = Nothing else 'do nothing End if Set objWMIService = Nothing Set colProcessList = Nothing
Splendid! 🎉
Thank you very much for sharing it!
Hey @laisnovaes,
Thanks for reaching out to us.
Currently there is no option to set a specific time for a playlist to play. You can have a look in our Idea Exchange to see if someone else has already made a similar suggestion.
If there isn't one, you can give these steps a go and submit your idea. That way other users can also support it. Rest assured that the higher the number of votes an idea gets, the more likely it is for the idea to be implemented.
If you want to set your alarm clock to play a Spotify track, you can head here and check the steps.
Hope this was helpful for you. If you have more questions, we are here for you.
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…