A work around in the mean time is to bring the Spotify window to the front, send it a space and then minimise it again.
You may want to stop it minimising according to your own preference
Re-edit - got it working for skipping tracks as well, it's a bit hacky and may not work if you have UAC enabled (according to the docs) , YMMV. Works for me though
ScrollLock::
{
DetectHiddenWindows, On
WinActivate, ahk_class SpotifyMainWindow
SendInput, , ^{Right}, ahk_class SpotifyMainWindow
Sleep, 100
ControlSend, , {Space}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
WinMinimize, ahk_class SpotifyMainWindow
return
}
PrintScreen::
{
DetectHiddenWindows, On
WinActivate, ahk_class SpotifyMainWindow
SendInput, , ^{Left}, ahk_class SpotifyMainWindow
Sleep, 100
ControlSend, , {Space}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
WinMinimize, ahk_class SpotifyMainWindow
return
}
Pause::
{
DetectHiddenWindows, On
WinActivate, ahk_class SpotifyMainWindow
ControlSend, , {Space}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
WinMinimize, ahk_class SpotifyMainWindow
return
}