2015-03-13 40 views
5

Ho usato lo script AutoHotKey per le scorciatoie di Spotify (le scorciatoie integrate sono limitate e funzionano solo se l'app è a fuoco, di solito la tengo in background al lavoro).Aggiornamento Spotify più recente: Script Autohotkeys rotto

In ogni caso, è stato aggiornato un milione di volte prima senza alcun problema .. ma ho scaricato l'ultimo aggiornamento Spotify e non funziona più. Qualche idea del perché?

Ecco la sceneggiatura.

#z::Run www.autohotkey.com 
 

 
SetTitleMatchMode 2 
 

 
; "CTRL + LEFT" for previous 
 
^Left:: 
 
{ 
 
DetectHiddenWindows, On 
 
ControlSend, ahk_parent, ^{Left}, ahk_class SpotifyMainWindow 
 
DetectHiddenWindows, Off 
 
return 
 
} 
 

 

 
; "CTRL + RIGHT" for next 
 
^Right:: 
 
{ 
 
DetectHiddenWindows, On 
 
ControlSend, ahk_parent, ^{Right}, ahk_class SpotifyMainWindow 
 
DetectHiddenWindows, Off 
 
return 
 
} 
 

 
; "CTRL + UP" for pause 
 
^UP:: 
 
{ 
 
DetectHiddenWindows, On 
 
ControlSend, ahk_parent, {space}, ahk_class SpotifyMainWindow 
 
DetectHiddenWindows, Off 
 
return 
 
} 
 

 
; "CTRL + DOWN" for info 
 
^Down:: 
 
{ 
 
DetectHiddenWindows, On 
 
SetTitleMatchMode 2 
 
WinGetTitle, now_playing, ahk_class SpotifyMainWindow 
 
StringTrimLeft, playing, now_playing, 10 
 
DetectHiddenWindows, Off 
 
clipboard = %playing%`r`n 
 
return 
 
} 
 

 
; "CTRL + PAGE UP" for volume up 
 
^PgUP:: 
 
{ 
 
DetectHiddenWindows, On 
 
ControlSend, ahk_parent, ^{Up}, ahk_class SpotifyMainWindow 
 
DetectHiddenWindows, Off 
 
return 
 
} 
 

 
; "CTRL + PAGE DOWN" for volume down 
 
^PgDn:: 
 
{ 
 
DetectHiddenWindows, On 
 
ControlSend, ahk_parent, ^{Down}, ahk_class SpotifyMainWindow 
 
DetectHiddenWindows, Off 
 
return 
 
} 
 

 
; "CTRL + END" for mute 
 
^End:: 
 
{ 
 
DetectHiddenWindows, On 
 
ControlSend, ahk_parent, ^+{Down}, ahk_class SpotifyMainWindow 
 
DetectHiddenWindows, Off 
 
return 
 
}

risposta

1

Vedere questa domanda: Hotkey for next song in Spotify - include una dichiarazione da uno sviluppatore Spotify, nonché una dichiarazione che verrà risolto nella prossima versione, così come una soluzione alternativa per il momento :

^Left::Media_Prev 
Problemi correlati