Window Spy returns the following information:
For example the following script doesn't work (returns only Now playing:):Coldplay - Viva La Vida
ahk_class Chrome_WidgetWin_0
ahk_exe Spotify.exe
Code: Select all
; Paste song name
^!c::
DetectHiddenWindows, On
IfWinExist ahk_exe Spotify.exe
{
WinGetTitle, now_playing, ahk_exe Spotify.exe
clipboard = Now playing: %now_playing%
Send, ^v
}
DetectHiddenWindows, Off
Return