https://github.com/alsweider/spotiragequit
A simple batch file to ragequit Spotify, restart and resume playing
https://github.com/alsweider/spotiragequit
advertising batch cmd commercials console desktop exit music play quit ragequit restart resume skip spotify spotify-desktop win10 windows windows10
Last synced: about 2 months ago
JSON representation
A simple batch file to ragequit Spotify, restart and resume playing
- Host: GitHub
- URL: https://github.com/alsweider/spotiragequit
- Owner: Alsweider
- Created: 2023-05-27T14:04:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-10T09:03:06.000Z (over 1 year ago)
- Last Synced: 2025-02-22T17:48:56.174Z (2 months ago)
- Topics: advertising, batch, cmd, commercials, console, desktop, exit, music, play, quit, ragequit, restart, resume, skip, spotify, spotify-desktop, win10, windows, windows10
- Language: Batchfile
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SpotiRagequit
A simple batch file to ragequit Spotify (desktop client), restart and resume playing.Download: https://github.com/Alsweider/SpotiRagequit/releases/latest
# How it works
Double click on the .bat file. It will close Spotify, delay a second and restart Spotify.
After another second delay, PowerShell is used to send a spacebar input to Spotify, which resumes playing the current playlist. For easy access, it is recommended to create a shortcut in the start menu or on the taskbar.# Troubleshooting
1. If Spotify can't be restarted, edit the line "start %appdata%\Spotify\Spotify.exe" and replace everything after "start " with the correct path to your "Spotify.exe".
2. If Spotify can't be closed by the batch command, it might help to add multiple lines of "taskkill /f /im Spotify.exe" to the code.
3. If your computer runs too slow to handle the commands quickly enough, it might help to increase the delay by changing "timeout 1" to "timeout 5" (for 5 seconds). The timeouts are only safety measures that are intended to prevent a process from being activated prematurely. It may also be possible to shorten or remove the timeouts completely.
4. If the music doesn't resume playing automatically, make sure the Spotify window remains focussed in the foreground while the batch is working. After restarting Spotify, it may take a few seconds for the input to be registered. Therefore, it is recommended not to minimise or switch the window during this time.