Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

AHK Hotkeys don't work when Spotify is minimized

AHK Hotkeys don't work when Spotify is minimized

So, because Spotify for some reason still doesn't have global hotkeys, (GPM-DP has it since ages), I tried to use auto hotkey to control the volume with hotkeys.

Here's my simple script (as an example just volume up): 

 

; "CTRL + UP" for volume up
^Up::
{ ControlSend, ahk_parent, ^{Up}, ahk_class SpotifyMainWindow
return }

 

However, this only works when Spotify isn't minimized. I also tried enabling the hidden windows option in the script, but that didn't change anything.

This leads me to believe that the problem lies with Spotify. That the desktop client just doesn't take keyboard inputs from AHK when it's minimized.

Of course I could change the script so it maximizes Spotify before sending the keyboard input, but that defeats the purpose of the hotkey as it then takes me out of any fullscreen application that I'm running.

 

Either give us global hotkeys (which should have been implemented years ago), or at least make ahk work when Spotify is minimized.

 

Reply
2 Replies

I'm tired of this kind of problem on this spotify GARBAGE

Trying to solve the problem the same way here, and disappointed.

Have to activate the window and then send a key to it, for example for play/pause:

If WinExist("ahk_exe Spotify.exe")
{
WinActivate, ahk_exe Spotify.exe
ControlSend, , {space}, ahk_exe Spotify.exe, , ,
}

Suggested posts