[Desktop] Global HotKeys for Pause/Play, Skip, etc.

It would be nice to have an Global Hotkey so you can pause/play your music while browsing and not switching between screens. Or when you are gaming and you want another song but you don't want to alt tab and stay idle, a (customizable?)  Global Hotkey(i.g. ctrl+shift+right) would be such an great improvement in the usefulness of Spotify.

Child Item
Status: None
Child Item
Child Item
Child Item

Comments

The lack of global hotkeys in Spotify is currently the only thing keeping me stuck on Winamp. Seriously, I am willing to pay monthly fees if the developers are willing to add this (imho quite basic) feature.

 

Also, inb4 "Get AutoHotkey" 😉 I don't want another constantly running program for something so simple.

I use for Pause/Play, Prev Song & Next Song my keyboard!

Well, there is a simple solution to your inquiry if you use Mac OSX Lion. I suppose that you, just like me, don't want to cram your toolbar with extra icons and I also suppose that you use an external keyboard that lacks the playpause/next/previous buttons.

 

Here's your 5-min solution 🙂

  1. Open up the Automator Application (Applications/Automator.app) 
  2. Create a new document (⌘N) and choose the "Service" type for your document.
  3. On the "Service receives selected" item in the top side of the window select "no input" from the dropdown.
  4. Search for "Run Applescript" from the searchbar on the left side of the window.
  5. Drag the "Run Applescript" item in the main window area.
  6. Delete the (* Your script goes here *) line and paste this instead:

    tell application "Spotify" to playpause

  7. Save your script (File > Save or ⌘S) and give it a meaningful name like Spotify PlayPause 😄
  8. Go to System Preferences > Keyboard > Shortcuts and select Services from the left column.
  9. Scroll down to the General Section and find your Spotify PlayPause item.
  10. Click the add shortcut button and press the combination of keys that will be your shortcut. (eg. I gave it the ⌃⌘P shortcut).
  11. Test that it's working by clicking on System Preferences (next to the Apple Logo on top of your screen) > Services > Spotify Play Pause. (Actually this step is necessary for the shortcut to be registered to your system).
  12. You're done! Your shortcut is now available to you, in whichever program you have open.

PS. In order to create a next or previous track shortcut, you should follow the above procedure, but on step 6 you input

  • tell application "Spotify" to next track
  • tell application "Spotify" to previous track

respectively.

If you have any questions feel free to ask 🙂

 I don't know why this isn't higher on the feature list. This would be fantastic to have. 

Yep, this is one of the big things keeping me on Winamp at home.

The solution proposed by modacular works great and as he said it only takes about 5 minutes.  I got play/pause, forward, and next with no hassle.

The solution from modacular might be great for Apple users. But windows doesn't have that unfortunately.
Thx for all the comments and kudo's, i hope this idea get through!

I could really use global hotkeys

+1 for that... I don't understand global hotkeys not being in all media players. You don't want to pop a window everytime you got to pause it to talk to someone... Even Like/Dislike for radio stations should be global hotkeys.

There is a plugin at the moment that can help you with this. I just tried it and it solves my problem... It would be better if it would be built in spotify but this is better than nothing. It is called Toastify.

 

http://toastify.codeplex.com/SourceControl/changeset/view/79962

by lucferron
There is a plugin at the moment that can help you with this. I just tried it and it solves my problem... It would be better if it would be built in spotify but this is better than nothing. It is called Toastify.

http://toastify.codeplex.com/SourceControl/changeset/view/79962

Thanks for the toastify link, works like a charm, for those wanting media keyboard support (the play/pause, back, forward, stop buttons on almost every keyboard nowadays), add the following the toastify.xml file located in the toastify folder.

 

<Hotkey>
      <Ctrl>false</Ctrl>
      <Alt>false</Alt>
      <Shift>false</Shift>
      <Key>MediaPlayPause</Key>
      <Action>PlayPause</Action>
    </Hotkey>
    <Hotkey>
      <Ctrl>false</Ctrl>
      <Alt>false</Alt>
      <Shift>false</Shift>
      <Key>MediaStop</Key>
      <Action>Stop</Action>
    </Hotkey>
    <Hotkey>
      <Ctrl>false</Ctrl>
      <Alt>false</Alt>
      <Shift>false</Shift>
      <Key>MediaPreviousTrack</Key>
      <Action>PreviousTrack</Action>
    </Hotkey>
    <Hotkey>
      <Ctrl>false</Ctrl>
      <Alt>false</Alt>
      <Shift>false</Shift>
      <Key>MediaNextTrack</Key>
      <Action>NextTrack</Action>
    </Hotkey>

 

This really should be default functionality though.

toastify works great... just needed one more functionality to star a song

Commenting to show my support for this! Using Windows 7 and there's not really a workaround.

Hi,

 

It would be cool if the spotify shortcut were working even if not on the spotify window...  As simple as this...

 

Thanks!

Come on!

 

This request is not that difficult to be implemented into Spotify !

 

This idea was posted 1 year ago and still not done! Toastify can do it, but YOU can't ??

All the Mediaplayers got this feature !

 

Thanks for reading

Added "etc." in the title to include also functions that most of you request in the comments, like star a track, add to playlist, and so on. 😉

Try downloading Flutter - lets you pause/play, hit next track and previous track using hand gestures (through your webcam)

Come on guys... Developing that feature is a 1 day job for any developer. Would be awesome to have it... Not like you need rocket science to get it done either.

Well @lucferron, I don't know if it's a 1 day job. It's not in their API, else I'd totally spend a whole day building it since it doesn't even require a rocket science degree.

 

image data n : Image data in TIFF format.

 

application n [see also Standard Suite] : The Spotify application.

properties

current track (track, r/o) : The current playing track.

sound volume (integer) : The sound output volume (0 = minimum, 100 = maximum)

player state (stopped/‌playing/‌paused, r/o) : Is Spotify stopped, paused, or playing?

player position (real) : The player’s position within the currently playing track in seconds.

repeating enabled (boolean, r/o) : Is repeating enabled in the current playback context?

repeating (boolean) : Is repeating on or off?

shuffling enabled (boolean, r/o) : Is shuffling enabled in the current playback context?

shuffling (boolean) : Is shuffling on or off?

track n : A Spotify track.

properties

artist (text, r/o) : The artist of the track.

album (text, r/o) : The album of the track.

disc number (integer, r/o) : The disc number of the track.

duration (integer, r/o) : The length of the track in seconds.

played count (integer, r/o) : The number of times this track has been played.

track number (integer, r/o) : The index of the track in its album.

starred (boolean, r/o) : Is the track starred?

popularity (integer, r/o) : How popular is this track? 0-100

id (text, r/o) : The ID of the item.

name (text, r/o) : The name of the track.

artwork (image data, r/o) : The track's album cover.

album artist (text, r/o) : That album artist of the track.

spotify url (text) : The URL of the track.

next track v : Skip to the next track.

next track

previous track v : Skip to the previous track.

previous track

playpause v : Toggle play/pause.

playpause

pause v : Pause playback.

pause

play v : Resume playback.

play

play track v : Start playback of a track in the given context.

play track text : the URI of the track to play

[in context text] : the URI of the context to play in

How does the Toastfy thing work? Do i just download it?

 

PS I am also surprised Spotify haven't got this already built in!

 

 

Google for "Blockify"

 

It alows you to use global Hotkeys,simply as that.

 

On the Mac, just use the app 'Take Five' from the Icon Factory. It sits in your menu bar. I've assigned F1 as my play/pause toggle for Spotify. See: http://takefiveapp.com

Well, I am a bit disappointed that this feature hasn't been built in. Spotify is a great service, and IMO it pays off, but they need to listen to their users.

I now have a Premium service, but to be honest, if this feature doesn't find it's way into Spotify, I see myself leaving, as harsh as it sounds.

This feature is still lacking in Spotify for all of us who don't have media keyboards. At least there's a nice program for Windows that solves the problem: Tostify.

What did Spotify change to make it work with media keyboards in Windows 7? I can now minimize Spotify and still use the media keys on my keyboard. This won't work with VLC...

 

There has to be something different between the two. And I can't stop using VLC until Spotify supports .flac files (I'm not going to keep an .mp3 and a .flac version of every song).

If you have Windows 7 and a keyboard that has the pause/play/skip/back icons over the F9,F11, and F12 keys, you can hold FN and press one of the buttons to do this, so only certain keyboards do it I guess.

I would very much like such a feature, I've tried both Toastify and AutoHotkey. Both of these works as charms, but I must admit I'm quite the fan of limiting number of third-party software running in my background. Therefore I would really appreciate a built-in support for this global hotkeys, where the user is able to define his own key-combination for activating different features. This could be good for Spotify as well, since they can give the users endless of features to use, such as "add to #somePlaylist" and similar features.

Yes, I would love to see customizable global hot keys added to Spotify! Play, pause, stop, skip track fwd/bck, vol. up/dwn; the ability to star tracks via hot keys. And being able to do all these things from another tab or window would be perfect. Yes I know that these have been mentioned in previous comments - I am merely reiterating how great these options would be 🙂

Like , Dislike, Delete file (from hard drive or playlist) would also be a nice function.

Child Item
Child Item