2015-03-13 18 views
5

Tôi đã sử dụng tập lệnh AutoHotKey cho phím tắt Spotify (phím tắt được xây dựng trong giới hạn và chỉ hoạt động nếu ứng dụng đang ở trong tiêu điểm, tôi thường giữ nó ở chế độ nền).Cập nhật Spotify mới nhất: Tập lệnh Autohotkeys đã phá vỡ

Dù sao, nó được cập nhật hàng triệu lần trước đó mà không có vấn đề gì .. nhưng tôi đã tải xuống bản cập nhật mới nhất của Spotify và nó không còn hoạt động nữa. Bất kỳ ý tưởng tại sao?

Đây là tập lệnh.

#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 
 
}

Trả lời

1

Xem câu hỏi này: Hotkey for next song in Spotify - bao gồm một tuyên bố từ một nhà phát triển Spotify, cũng như một tuyên bố rằng nó sẽ được cố định trong phiên bản sắp tới, cũng như một cách giải quyết cho thời điểm này :

^Left::Media_Prev 
Các vấn đề liên quan