最新的Spotify更新:Autohotkeys脚本损坏 [英] Newest Spotify update: Autohotkeys script broke

查看:102
本文介绍了最新的Spotify更新:Autohotkeys脚本损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前将AutoHotKey脚本用于Spotify快捷方式(内置的快捷方式是有限的,并且仅当应用程序处于焦点状态时才起作用,我通常在工作时将其保留在后台).

I used to use the AutoHotKey script for Spotify shortcuts (the built in shortcuts are limited and only work if the app is in focus, I usually keep it in the background at work).

无论如何,它已经更新了一百万次了,没有问题..但是我下载了最新的Spotify更新,它不再起作用.知道为什么吗?

Anyway, it's updated a million times before with no problem.. but I downloaded the latest spotify update and it no longer works. Any idea why?

这是脚本.

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

推荐答案

看到此问题: Spotify中下一首歌曲的热键-包括来自Spotify开发人员的声明,以及将在即将发布的版本中修复的声明,以及目前的解决方法:

See this question: Hotkey for next song in Spotify - includes a statement from a Spotify developer, as well as a statement that it will be fixed in the upcoming version, as well as a workaround for the moment:

^Left::Media_Prev

这篇关于最新的Spotify更新:Autohotkeys脚本损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆