在2015年3月Spotify升级后,下面的热键不再适用于获取Spotify中的下一首歌曲:
; Spotify next track
<^>!p::
DetectHiddenWindows, On
ControlSend, ahk_parent, ^{Right}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
Return
在使用spy检查时,“SpotifyMainWindow”似乎与旧版本相同,并且在Spotify中Ctrl-Right仍然可以用于下一首歌曲,但是热键不能用了。
如何在更新后的Spotify上设置下一首歌曲的热键?
{space}
也是如此。我无法通过send/postmsg解决它:sendmessage, 256, 32, 3735553,Chrome_RenderWidgetHostHWND1, ahk_class SpotifyMainWindow
,sendmessage, 257, 32, 3735553,Chrome_RenderWidgetHostHWND1, ahk_class SpotifyMainWindow
这成功地发送了{space}
并在之后释放它。但是,它仅在Spotify处于活动状态时才起作用。这很糟糕,因为postMessage通常是解决此类问题的最后一道防线。希望这能帮助找到解决方案。 - phil294